server

package
v0.0.0-...-c5541d2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*Opts)

func WithDB

func WithDB(db *database.DB) Opt

func WithEnv

func WithEnv(environment env.Level) Opt

func WithLogger

func WithLogger(logger *slog.Logger) Opt

func WithPort

func WithPort(port uint32) Opt

type Opts

type Opts struct {
	DB          *database.DB
	Log         *slog.Logger
	Environment env.Level
	Port        uint32
}

type Server

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

func New

func New(opts ...Opt) *Server

func (Server) Run

func (s Server) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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