webserver

package
v0.0.0-...-bd56815 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 9 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 {
	croupier.Croupier
	// contains filtered or unexported fields
}

Broker manages the internal state of the Croupier API.

func New

func New(cfg Config) (*Broker, error)

New initializes a new Croupier API.

func (*Broker) Start

func (bkr *Broker) Start(binder func(s Server, r *mux.Router))

Start the Croupier service

type Config

type Config struct {
	Croupier croupier.Config
	Port     int
}

Config for the Croupier API.

type Server

type Server interface {
	croupier.Croupier
}

Jump to

Keyboard shortcuts

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