server

package
v0.0.0-...-6f371f5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEmptyString

func ValidateEmptyString(s string, params interface{}) (err error)

func ValidateServerConfig

func ValidateServerConfig(configuration *Config) (err error)

Types

type Binder

type Binder func(server Server, router *mux.Router)

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, configuration *Config) (broker *Broker, err error)

func (*Broker) Config

func (b *Broker) Config() (configuration *Config)

func (*Broker) Start

func (broker *Broker) Start(binder Binder)

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