server

package
v0.0.0-...-7fde5a9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 10 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 {
	DB     *sql.DB
	Server *grpc.Server
	Config *config.Config
}

Server structure to access config and database.

func NewServer

func NewServer(c *config.Config) *Server

NewServer create new connection to database and create a new instance of grpc server.

func (*Server) Run

func (s *Server) Run()

Run listens to socket.

Jump to

Keyboard shortcuts

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