Versions in this module Expand all Collapse all v1 v1.0.2 Feb 20, 2024 Changes in this version + func Run(router *Router, transports ...Transport) + type Client interface + Do func(ctx context.Context, req interface{}, metas ...Metadata) Result + type ContextProvider interface + ContextKey func() interface{} + type ContextWith = func(ctx context.Context) context.Context + func ComposeContextWith(contextWiths ...ContextWith) ContextWith + type DefaultsSetter interface + SetDefaults func() + type EmptyOperator struct + type Metadata map[string][]string + func FromMetas(metas ...Metadata) Metadata + func (m Metadata) Add(key, value string) + func (m Metadata) Del(key string) + func (m Metadata) Get(key string) string + func (m Metadata) Has(key string) bool + func (m Metadata) Merge(metadata Metadata) + func (m Metadata) Set(key string, values ...string) + func (m Metadata) String() string + type MetadataCarrier interface + Meta func() Metadata + type MiddleOperators []Operator + type Operator interface + Output func(ctx context.Context) (interface{}, error) + type OperatorFactory struct + ContextKey interface{} + IsLast bool + NoOutput bool + Operator Operator + Params url.Values + Type reflect.Type + func NewOperatorFactory(op Operator, last bool) *OperatorFactory + func (o *OperatorFactory) New() Operator + func (o *OperatorFactory) String() string + type OperatorInit interface + InitFrom func(o Operator) + type OperatorMeta = OperatorFactory + type OperatorNewer interface + New func() Operator + type OperatorWithParams interface + OperatorParams func() map[string][]string + type OperatorWithoutOutput interface + NoOutput func() + type Result interface + Into func(v interface{}) (Metadata, error) + type Route struct + Operators []Operator + func (route *Route) OperatorFactories() (operatorFactories []*OperatorFactory) + func (route *Route) String() string + type Router struct + func NewRouter(operators ...Operator) *Router + func (router *Router) Register(r *Router) + func (router *Router) Routes() (routes Routes) + type Routes []*Route + func (routes Routes) String() string + type Transport interface + Serve func(router *Router) error + type WithMiddleOperators interface + MiddleOperators func() MiddleOperators