Documentation
¶
Index ¶
- type Options
- type Server
- func (s *Server) List(msg *broker.Msg)
- func (s *Server) NotFoundHandler() http.Handler
- func (s *Server) Publish(subj string, data []byte) error
- func (s *Server) Run()
- func (s *Server) Status(msg *broker.Msg)
- func (s *Server) Subscribe(subj string, f func(*broker.Msg)) (*broker.Subscription, error)
- func (s *Server) Sync(msg *broker.Msg)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// API Server
// The port used for the API server
Port string
// Enable o disable the UI dashboard
UI bool
// The port used for enter to UI dashboard
PortUI string
// Broker server
// The Broker server URL
BrokerURL string
// Use external broker server (default: false) or internal nats server (true)
BrokerExternal bool
// Broker access key
BrokerAccessKey string
// Broker secret key
BrokerSecretKey string
// Storage
// Endpoint S3 URL
StorageURL string
// Storage access key
StorageAccessKey string
// Storage secret key
StorageSecretKey string
// Database
// Database URL
DatabaseURL string
// Database access key
DatabaseAccessKey string
// Database secret key
DatabaseSecretKey string
// Config path
Config string
}
Options for API, broker server and UI dashboard
type Server ¶
type Server struct {
Port string
StorageAccessKey string
StorageSecretKey string
Opts Options
HTTP *echo.Echo
Conn *broker.Conn
BrokerOpts []broker.Option
// Static assets
Static *packr.Box
// contains filtered or unexported fields
}
func (*Server) NotFoundHandler ¶
Click to show internal directories.
Click to hide internal directories.