2021-06-04 18:27:02 +03:00
|
|
|
package decoder
|
|
|
|
|
2021-06-12 11:06:26 +03:00
|
|
|
import "context"
|
|
|
|
|
|
|
|
type OptionFlags uint8
|
2021-06-06 05:11:04 +03:00
|
|
|
|
|
|
|
const (
|
2021-06-12 11:06:26 +03:00
|
|
|
FirstWinOption OptionFlags = 1 << iota
|
|
|
|
ContextOption
|
2022-11-28 21:55:56 +03:00
|
|
|
PathOption
|
2021-06-06 05:11:04 +03:00
|
|
|
)
|
|
|
|
|
2021-06-04 18:27:02 +03:00
|
|
|
type Option struct {
|
2021-06-12 11:06:26 +03:00
|
|
|
Flags OptionFlags
|
|
|
|
Context context.Context
|
2022-11-28 21:55:56 +03:00
|
|
|
Path *Path
|
2021-06-04 18:27:02 +03:00
|
|
|
}
|