server

package
v0.0.0-...-8c0880b Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 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 Database

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

Database structure.

func (*Database) Connect

func (db *Database) Connect()

Connect establishes a connection to a database using the provided values.

func (*Database) LoadSeeds

func (db *Database) LoadSeeds()

LoadSeeds migrates and loads into database existing models.

type Server

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

Server structure.

func Configure

func Configure(host string, port int, user, password, name string, logDB bool) Server

Configure a server instance.

func (*Server) Run

func (server *Server) Run(address string)

Run the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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