Documentation ¶
Index ¶
- func PathValue(ctx context.Context, name string) string
- type AdvanceHandlerFunc
- type AdvanceRequest
- type InspectHandlerFunc
- type Router
- func (r *Router) Advance(env rollmelette.Env, metadata rollmelette.Metadata, ...) error
- func (r *Router) HandleAdvance(path string, handler AdvanceHandlerFunc)
- func (r *Router) HandleInspect(path string, handler InspectHandlerFunc)
- func (r *Router) Inspect(env rollmelette.EnvInspector, payload []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdvanceHandlerFunc ¶
type AdvanceHandlerFunc func(env rollmelette.Env, metadata rollmelette.Metadata, deposit rollmelette.Deposit, payload []byte) error
type AdvanceRequest ¶
type AdvanceRequest struct { Path string `json:"path"` Payload json.RawMessage `json:"payload"` }
type InspectHandlerFunc ¶
type InspectHandlerFunc func(env rollmelette.EnvInspector, ctx context.Context) error
type Router ¶
type Router struct { AdvanceHandlers map[string]AdvanceHandlerFunc InspectHandlers map[string]struct { Handler InspectHandlerFunc Regex *regexp.Regexp } }
func (*Router) Advance ¶
func (r *Router) Advance(env rollmelette.Env, metadata rollmelette.Metadata, deposit rollmelette.Deposit, payload []byte) error
func (*Router) HandleAdvance ¶
func (r *Router) HandleAdvance(path string, handler AdvanceHandlerFunc)
func (*Router) HandleInspect ¶
func (r *Router) HandleInspect(path string, handler InspectHandlerFunc)
func (*Router) Inspect ¶
func (r *Router) Inspect(env rollmelette.EnvInspector, payload []byte) error
Click to show internal directories.
Click to hide internal directories.