server

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package server defines structure for coconut IA server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseServer

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

BaseServer defines all the required attributes for a coconut server.

func New

func New(cfg *config.Config, log *logger.Logger) (*BaseServer, error)

New returns a new Server instance parameterized with the specified configuration. nolint: gocyclo

func (*BaseServer) CmdChIn

func (s *BaseServer) CmdChIn() chan<- *commands.CommandRequest

func (*BaseServer) GrpcListeners

func (s *BaseServer) GrpcListeners() []*grpclistener.Listener

func (*BaseServer) Listeners

func (s *BaseServer) Listeners() []*listener.Listener

func (*BaseServer) NymClient

func (s *BaseServer) NymClient() *nymclient.Client

func (*BaseServer) ServerWorkers

func (s *BaseServer) ServerWorkers() []*serverworker.ServerWorker

func (*BaseServer) Shutdown

func (s *BaseServer) Shutdown()

Shutdown cleanly shuts down a given Server instance.

func (*BaseServer) Store

func (s *BaseServer) Store() *storage.Database

func (*BaseServer) Wait

func (s *BaseServer) Wait()

Wait waits till the server is terminated for any reason.

Directories

Path Synopsis
Package config defines configuration used by coconut server.
Package config defines configuration used by coconut server.
grpc
listener
Package grpclistener implements the support for incoming gRPCs.
Package grpclistener implements the support for incoming gRPCs.
Package issuer defines structure for coconut Issuing Authority.
Package issuer defines structure for coconut Issuing Authority.
utils
package utils defines utility functions/structures required by or with an issuer.
package utils defines utility functions/structures required by or with an issuer.
Package listener implements the support for incoming TCP connections.
Package listener implements the support for incoming TCP connections.
requesthandler
Package requesthandler contains functions that are used by issuing authorities and service providers
Package requesthandler contains functions that are used by issuing authorities and service providers
Package monitor implements the support for monitoring the state of the Tendermint Blockchain (later Ethereum I guess?) to sign all committed requests.
Package monitor implements the support for monitoring the state of the Tendermint Blockchain (later Ethereum I guess?) to sign all committed requests.
processor
Package processor processes data obtained by the monitor.
Package processor processes data obtained by the monitor.
Package provider defines basic structure for a coconut Service Provider server.
Package provider defines basic structure for a coconut Service Provider server.
Package requestqueue is implemented based on eapache's infinite channel template: https://github.com/eapache/channels/blob/master/infinite_channel.go As explained by the author in documentation: https://godoc.org/github.com/eapache/channels due to Go's type system limitations direct import of his library is impractical.
Package requestqueue is implemented based on eapache's infinite channel template: https://github.com/eapache/channels/blob/master/infinite_channel.go As explained by the author in documentation: https://godoc.org/github.com/eapache/channels due to Go's type system limitations direct import of his library is impractical.
Package serverworker gives additional functionalities to regular CoconutWorker that are required by a server instance.
Package serverworker gives additional functionalities to regular CoconutWorker that are required by a server instance.
commandhandler
Package commandhandler contains functions that are used to resolve commands issued to issuers and providers.
Package commandhandler contains functions that are used to resolve commands issued to issuers and providers.
Package storage implements an interface to a goleveldb database.
Package storage implements an interface to a goleveldb database.

Jump to

Keyboard shortcuts

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