api

package
v0.0.0-...-f68b460 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr      string
	WSHub     *ws.Hub
	HttpMux   *http.ServeMux
	DB        *db.DB
	JWTSecret []byte
}

Server represents the API server

func NewServer

func NewServer(addr string, db *db.DB, jwtSecret []byte) *Server

NewServer creates a new API server

func (*Server) Start

func (s *Server) Start() error

Start initializes and starts the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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