micro

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 WithContext(timeout time.Duration, h func(ctx context.Context, r micro.Request)) func(ctx context.Context, r micro.Request)

func WithErrorableRequest

func WithErrorableRequest(h ErrorableMicroRequest) func(ctx context.Context, r micro.Request)

Types

type EndpointAttacher

type EndpointAttacher func(context.Context, jsonschema.Reflector, micro.Group) error

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
}

type ErrorableMicroRequest

type ErrorableMicroRequest func(ctx context.Context, r micro.Request) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL