Documentation ¶
Index ¶
- Variables
- func GetContextValue(ctx context.Context, contextProvider IContextProvider) interface{}
- func ModifyRequestIDWithVersionSwitch(requestID string, version string) string
- func ParseVersionSwitch(s string) (string, string, bool)
- func Run(router *Router, serves ...IServe)
- func UnmarshalBytes(data []byte, v interface{}) error
- type EmptyOperator
- type IContextProvider
- type IDefaultsMarshal
- type IEmptyOperator
- type IMeta
- type IOperator
- type IServe
- type Metadata
- type OperatorDecoder
- type OperatorMeta
- type Result
- type Route
- type Router
- type TUnmarshal
- type WithVersionSwitch
Constants ¶
This section is empty.
Variables ¶
View Source
var VersionSwitchKey = "X-Version"
Functions ¶
func GetContextValue ¶
func GetContextValue(ctx context.Context, contextProvider IContextProvider) interface{}
func UnmarshalBytes ¶
Types ¶
type EmptyOperator ¶
type EmptyOperator struct { }
func (EmptyOperator) NoOutput ¶
func (g EmptyOperator) NoOutput() bool
type IContextProvider ¶
type IDefaultsMarshal ¶
type IDefaultsMarshal interface {
MarshalDefaults(v interface{})
}
type IEmptyOperator ¶
type IOperator ¶
func NewOperatorBy ¶
type OperatorMeta ¶
func GetOperatorMeta ¶
func GetOperatorMeta(op IOperator, last bool) OperatorMeta
func ToOperatorMetaList ¶
func ToOperatorMetaList(ops ...IOperator) (opMetas []OperatorMeta)
type Route ¶
type Route struct { Operators []IOperator // contains filtered or unexported fields }
func (*Route) EffectiveOperators ¶
type TUnmarshal ¶
type WithVersionSwitch ¶
type WithVersionSwitch struct {
XVersion string `name:"X-Version,omitempty" in:"header"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.