Documentation
¶
Index ¶
- Variables
- type Options
- type Server
- func (s *Server) AddMiddleware(middleware gin.HandlerFunc)
- func (s *Server) AddRoute(route api.ApiRoute)
- func (s *Server) AddRoutes(routes []api.ApiRoute)
- func (s *Server) AddSubscription(route api.EventRoute)
- func (s *Server) AddSubscriptions(routes []api.EventRoute)
- func (s *Server) Init(options Options)
- func (s *Server) Start(port int)
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthMiddleware = middleware.Auth
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // Deprecated: use NoPlanIdMiddleWare instead NoTrustFundMiddleware bool NoPlanIdMiddleware bool NoIntegrationIdMiddleware bool HealthChecks health.Config PubsubName string }
func (Options) UsePlanIdMiddleware ¶
type Server ¶
func CreateServer ¶
func (*Server) AddMiddleware ¶
func (s *Server) AddMiddleware(middleware gin.HandlerFunc)
func (*Server) AddSubscription ¶
func (s *Server) AddSubscription(route api.EventRoute)
func (*Server) AddSubscriptions ¶
func (s *Server) AddSubscriptions(routes []api.EventRoute)
Click to show internal directories.
Click to hide internal directories.