Documentation ¶
Index ¶
- func NewBlestError(message string, args ...interface{}) error
- func NewHttpServer(requestHandler RequestHandler, args ...interface{}) *http.Server
- type BlestError
- type HttpClient
- type RequestHandler
- type Route
- type Router
- func (r *Router) Describe(route string, config map[string]interface{}) error
- func (r *Router) Handle(requests [][]interface{}, context map[string]interface{}) ([][4]interface{}, map[string]interface{})
- func (r *Router) Merge(router *Router) error
- func (r *Router) Namespace(prefix string, router *Router) error
- func (r *Router) Route(route string, args ...interface{})
- func (r *Router) Run()
- func (r *Router) Use(handlers ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlestError ¶ added in v0.1.0
func NewHttpServer ¶ added in v0.1.2
func NewHttpServer(requestHandler RequestHandler, args ...interface{}) *http.Server
Types ¶
type BlestError ¶ added in v0.1.0
func (*BlestError) Error ¶ added in v0.1.0
func (be *BlestError) Error() string
type HttpClient ¶ added in v0.1.0
type HttpClient struct { Url string Options map[string]interface{} HttpHeaders map[string]string MaxBatchSize int Queue [][]interface{} Timeout *time.Timer Emitter *eventEmitter }
func NewHttpClient ¶ added in v0.1.0
func NewHttpClient(url string, args ...interface{}) *HttpClient
func (*HttpClient) Process ¶ added in v0.1.0
func (c *HttpClient) Process()
type RequestHandler ¶ added in v0.1.0
type Router ¶ added in v0.1.0
type Router struct { Options map[string]interface{} Introspection bool Middleware []interface{} Afterware []interface{} Timeout int Routes map[string]Route }
Click to show internal directories.
Click to hide internal directories.