listener

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: 15 Imported by: 0

Documentation

Overview

Package listener implements the support for incoming TCP connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	sync.Mutex
	worker.Worker
	// contains filtered or unexported fields
}

Listener represents the Coconut Server listener (listening on TCP socket, not for gRPC via HTTP2) TODO: remove old fields and make more generic

func New

func New(cfg *config.Config, inCh chan<- *commands.CommandRequest, id uint64, l *logger.Logger, addr string,
) (*Listener, error)

New creates a new listener.

func (*Listener) FinalizeStartup

func (l *Listener) FinalizeStartup()

FinalizeStartup is used when the server is a provider. It indicates it has aggregated required number of verification keys and hence can verify received credentials. TODO: get rid in favour of simply loading all keys on startup

func (*Listener) Halt

func (l *Listener) Halt()

Halt stops the listener and closes (if any) connections.

func (*Listener) RegisterDefaultIssuerHandlers

func (l *Listener) RegisterDefaultIssuerHandlers()

func (*Listener) RegisterDefaultServiceProviderHandlers

func (l *Listener) RegisterDefaultServiceProviderHandlers()

func (*Listener) RegisterHandler

func (l *Listener) RegisterHandler(o interface{}, hf requesthandler.ResolveRequestHandlerFunc)

Directories

Path Synopsis
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

Jump to

Keyboard shortcuts

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