server

package
v0.0.0-...-cd37d07 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

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