server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config, db *database.Database) *Server

NewServer creates a new server.

func (*Server) GetAddress

func (server *Server) GetAddress() string

GetAddress returns the server's IP address.

func (*Server) GetConfiguration

func (server *Server) GetConfiguration() *config.Config

GetConfiguration returns the configuration.

func (*Server) GetDatabase

func (server *Server) GetDatabase() *database.Database

GetDatabase returns the database.

func (*Server) GetPort

func (server *Server) GetPort() uint

GetPort returns the server's port.

func (*Server) Run

func (server *Server) Run()

Run starts the server.

Jump to

Keyboard shortcuts

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