server

package
v0.0.0-...-aa46052 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *config.Config) error

Init - create new server

Types

type Server

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

Server - server structure

func Get

func Get() *Server

GetServer - get server configuration settings

func (*Server) Auth

func (s *Server) Auth() *auth.Authenticator

Auth - get Authenticator

func (*Server) DB

func (s *Server) DB() database.Database

Database - get Database

func (*Server) Service

func (s *Server) Service() *service.Service

Service - get service

func (*Server) Store

func (s *Server) Store() *store.Store

Store - get store

Jump to

Keyboard shortcuts

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