Documentation ¶ Index ¶ type Broker func NewServer(ctx context.Context, config *Config) (*Broker, error) func (b *Broker) Config() *Config func (b *Broker) Start(binder func(s Server, r *mux.Router)) type Config type Server Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Broker ¶ type Broker struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(ctx context.Context, config *Config) (*Broker, error) func (*Broker) Config ¶ func (b *Broker) Config() *Config func (*Broker) Start ¶ func (b *Broker) Start(binder func(s Server, r *mux.Router)) type Config ¶ type Config struct { Port string // Port to run the server on JWTSecret string // Secret to sign JWT tokens with DataBaseURL string // URL to connect to the database } type Server ¶ type Server interface { Config() *Config } Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.