server

package
v0.0.0-...-4462aca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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
	JWTSecret   string
	DatabaseUrl string
}

type Server

type Server interface {
	Config() *Config
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL