server

package
v0.0.0-...-1743a1b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSIServer

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

func NewSSIServer

func NewSSIServer(logger *slog.Logger, context context.Context, dbPath string, server string) (*SSIServer, error)

type Server

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

func New

func New(logger *slog.Logger, context context.Context, host, port string, dataDir string) *Server

func (*Server) GetUserDB

func (s *Server) GetUserDB(username string) (*UserDB, error)

func (*Server) Start

func (s *Server) Start() error

type UserDB

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

func NewUserDB

func NewUserDB(ctx context.Context, dbPath string, logger *slog.Logger) (*UserDB, error)

func (*UserDB) Close

func (db *UserDB) Close() error

func (*UserDB) GetChannel

func (db *UserDB) GetChannel(channel string) chan string

type UserServer

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

func NewUserServer

func NewUserServer(logger *slog.Logger, context context.Context, dbPath string) (*UserServer, error)

func (*UserServer) Close

func (s *UserServer) Close() error

func (*UserServer) Start

func (s *UserServer) Start(in io.Reader, out io.Writer) error

Jump to

Keyboard shortcuts

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