Documentation ¶
Index ¶
- func GenerateSchema(reflector jsonschema.Reflector, req interface{}, res interface{}) (*micro.Schema, error)
- func UUIDMapper(t reflect.Type) []reflect.StructField
- func WithContext(timeout time.Duration, h func(ctx context.Context, r micro.Request)) func(ctx context.Context, r micro.Request)
- func WithErrorableRequest(h ErrorableMicroRequest) func(ctx context.Context, r micro.Request)
- type EndpointAttacher
- type EndpointAttacherSet
- type Endpointer
- type ErrorableMicroRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSchema ¶
func GenerateSchema(reflector jsonschema.Reflector, req interface{}, res interface{}) (*micro.Schema, error)
func UUIDMapper ¶
func UUIDMapper(t reflect.Type) []reflect.StructField
func WithContext ¶
func WithErrorableRequest ¶
func WithErrorableRequest(h ErrorableMicroRequest) func(ctx context.Context, r micro.Request)
Types ¶
type EndpointAttacher ¶
type EndpointAttacherSet ¶ added in v0.0.8
type EndpointAttacherSet []EndpointAttacher
func (EndpointAttacherSet) Endpoints ¶ added in v0.0.8
func (e EndpointAttacherSet) Endpoints() []EndpointAttacher
type Endpointer ¶
type Endpointer interface {
Endpoints() []EndpointAttacher
}
Click to show internal directories.
Click to hide internal directories.