Documentation ¶
Index ¶
- func CtxBareClone(ctx context.Context) (context.Context, error)
- func CtxSetRewind(ctx context.Context, rewind bool) context.Context
- func CtxSetRoot(ctx context.Context, root *osm.Relation) context.Context
- func ErrIsClient(err interface{}) bool
- func FindSubAreas(ctx context.Context, id int64) (string, error)
- func NewContext(ctx context.Context, log shared.Logger, raw bool, separated bool, out string, ...) (context.Context, error)
- func SubAreas(ctx context.Context, str string) error
- func VerifyOutput(ctx context.Context, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtxBareClone ¶ added in v0.1.1
CtxBareClone makes a copy of this context. It also makes sure that non-primitive values like logger are deep-copied.
func CtxSetRewind ¶ added in v0.1.1
CtxSetRewind sets "rewind" value to this context.
func CtxSetRoot ¶ added in v0.1.1
CtxSetRoot sets "root" value to this context.
func ErrIsClient ¶ added in v0.1.1
func ErrIsClient(err interface{}) bool
ErrIsClient determines if an error thrown by osmapi is client error
func FindSubAreas ¶
FindSubAreas looks for outputs of a sub-area.
func NewContext ¶
func NewContext(ctx context.Context, log shared.Logger, raw bool, separated bool, out string, rewind bool) (context.Context, error)
NewContext is the utility to encapsulate pkg-scoped context values by preventing context key collision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.