server

package
v0.0.0-...-c83d288 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 10 Imported by: 2

Documentation

Overview

Package server contains an implementation of the MOTKI GRPC server.

Much of the Server interface is generated using the protocol buffer definitions in the proto package. As such, this package is mainly intended for internal use.

Index

Constants

This section is empty.

Variables

View Source
var ErrBadCredentials = errors.New("username or password is incorrect")

Functions

This section is empty.

Types

type Server

type Server interface {
	proto.AuthenticationServiceServer
	proto.ProductServiceServer
	proto.MarketPriceServiceServer
	proto.InfoServiceServer
	proto.EveDBServiceServer
	proto.CorporationServiceServer
	proto.InventoryServiceServer
	proto.LocationServiceServer

	// Serve opens a listening socket for the GRPC server.
	Serve() error
	// Shutdown attempts to gracefully shutdown the GRPC server.
	Shutdown() error
}

A Server represents the raw interface for a MOTKI protobuf server.

func New

func New(conf proto.Config, m *model.Manager, edb *evedb.EveDB, api *eveapi.EveAPI, l log.Logger) (Server, error)

New creates a new Server using the given configuration and dependencies.

Jump to

Keyboard shortcuts

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