server

package
v0.0.0-...-e599a1d Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 8 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) Hub

func (b *Broker) Hub() *websocket.Hub

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
	Hub() *websocket.Hub
}

Jump to

Keyboard shortcuts

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