
options
import "github.com/go-coldbrew/options"
Index
func AddToOptions(ctx context.Context, key string, value interface{}) context.Context
AddToOptions adds options to context
Options are request options passed from Orion to server
type Options struct {
sync.Map
}
func FromContext(ctx context.Context) *Options
FromContext fetchs options from provided context
func (Options) Add
func (o Options) Add(key string, value interface{})
Add to Options
func (Options) Del
func (o Options) Del(key string)
Del an options
func (Options) Get
func (o Options) Get(key string) (interface{}, bool)
Get an options
Generated by gomarkdoc