Documentation
¶
Index ¶
- Constants
- type Context
- type Handler
- type Metadata
- type Server
- func (server *Server) Broker(b broker.Broker)
- func (server *Server) Close()
- func (server *Server) Encoder(enc encoder.Encoder)
- func (server *Server) Id() string
- func (server *Server) Registry(r registry.Registry)
- func (server *Server) Run(addr string, timeout time.Duration)
- func (server *Server) RunTLS(addr string, timeout time.Duration, certFile, keyFile string)
- func (server *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (server *Server) ServePubSub(topic string, msg []byte) error
- func (server *Server) Service(service interface{}, h ...Handler)
- func (server *Server) ServiceError(fn ServiceErrorFunc)
- func (server *Server) Snappy(enable bool)
- func (server *Server) Stage(stage string)
- func (server *Server) Subscribe(topic, queue string, timeout time.Duration, size int, method interface{})
- func (server *Server) SubscriberError(fn SubscriberErrorFunc)
- func (server *Server) Use(h ...Handler)
- type ServiceErrorFunc
- type SubscribeContext
- type SubscriberErrorFunc
Constants ¶
View Source
const ( DEVELOPMENT = "development" STAGING = "staging" PRODUCTION = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ServeHTTP ¶
func (server *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
func (*Server) ServiceError ¶
func (server *Server) ServiceError(fn ServiceErrorFunc)
func (*Server) SubscriberError ¶
func (server *Server) SubscriberError(fn SubscriberErrorFunc)
type ServiceErrorFunc ¶
type SubscribeContext ¶
type SubscribeContext struct { Id string Topic string Metadata Metadata Queue string // contains filtered or unexported fields }
func (*SubscribeContext) Ack ¶
func (ctx *SubscribeContext) Ack() error
type SubscriberErrorFunc ¶
Click to show internal directories.
Click to hide internal directories.