server

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteScheme

func ExecuteScheme(db *sql.DB) error

func Init

func Init()

func NewServer

func NewServer() error

Types

type Server

type Server struct {
	// db connection bool
	Sqlitedb *sql.DB
	Dbstmt   map[string]*sql.Stmt
	Pool     *request_handler.RequestHandler
	Port     string
	Address  string
	InfoLog  *log.Logger
	ErrorLog *log.Logger
}
var Serv *Server

func (*Server) CreateSuper

func (s *Server) CreateSuper()

create the only superuser user if not already created "duck" with an initial password "duck"

func (*Server) PrepareStmt

func (s *Server) PrepareStmt()

cread prepared statments to use in executing queries

Jump to

Keyboard shortcuts

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