Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authentication ¶
type ClientContext ¶
type ClientContext struct {
// contains filtered or unexported fields
}
func (*ClientContext) CheckSubscribeTopic ¶
func (c *ClientContext) CheckSubscribeTopic(topic string) bool
func (*ClientContext) GetAccountId ¶
func (c *ClientContext) GetAccountId() string
func (*ClientContext) GetAuthentication ¶
func (c *ClientContext) GetAuthentication() Authentication
func (*ClientContext) GetTenantId ¶
func (c *ClientContext) GetTenantId() string
func (*ClientContext) SetAuthentication ¶
func (c *ClientContext) SetAuthentication(authentication Authentication)
type Option ¶
type Option struct { Context context.Context PublicPort int ClusterPort int PrivatePort int ContextPath string MetricsPath string MongoUri string MongoUsername string MongoPassword string PeerNotifyAddress string // SmtpServer address:port SmtpServer string SmtpUsername string SmtpPassword string MailFrom string MailFromName string MailFromAddress string BrokerUri string BrokerUsername string BrokerPassword string BrokerRoutingKeyPrefix string PublicApp *fiber.App PrivateApp *fiber.App WebsocketInterceptor WebsocketInterceptor PublicApiInterceptor PublicApiInterceptor I18nReLoader template_service.I18nReLoader LocaleFallback string }
type PublicApiInterceptor ¶
type PublicApiInterceptor func(c *fiber.Ctx, clientContext *ClientContext) error
type Server ¶
type Server struct { PublicApp *fiber.App PrivateApp *fiber.App // contains filtered or unexported fields }
func (*Server) FiberServe ¶
func (*Server) PeerService ¶
func (s *Server) PeerService() peer_service.PeerService
func (*Server) PubSubService ¶
func (s *Server) PubSubService() pubsub_service.PubSubService
type WebSocketConnection ¶
type WebSocketConnection struct {
// contains filtered or unexported fields
}
func (*WebSocketConnection) ClientContext ¶
func (c *WebSocketConnection) ClientContext() *ClientContext
func (*WebSocketConnection) RawConn ¶
func (c *WebSocketConnection) RawConn() *websocket.Conn
type WebSocketRequestHandler ¶
type WebsocketInterceptor ¶
type WebsocketInterceptor func(c *WebSocketConnection) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.