trisarl

package
v0.0.0-...-ad3391b Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionMajor         = 1
	VersionMinor         = 0
	VersionPatch         = 0
	VersionReleaseLevel  = ""
	VersionReleaseNumber = 0
)

Version component constants for the current build.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns the semantic version for the current build.

Types

type Server

type Server struct {
	protocol.UnimplementedTRISANetworkServer
	protocol.UnimplementedTRISAHealthServer
	// contains filtered or unexported fields
}

Server implements the TRISAIntegration and TRISAHealth Services

func New

func New(conf config.Config) (s *Server, err error)

New creates a new Rotational TRISA Server with the specified configuration and prepares it to listen for and respond to gRPC requests on the TRISA network.

func (*Server) ConfirmAddress

func (s *Server) ConfirmAddress(ctx context.Context, in *protocol.Address) (out *protocol.AddressConfirmation, err error)

func (*Server) KeyExchange

func (s *Server) KeyExchange(ctx context.Context, in *protocol.SigningKey) (out *protocol.SigningKey, err error)

func (*Server) Serve

func (s *Server) Serve() (err error)

Serve TRISA requests.

func (*Server) Shutdown

func (s *Server) Shutdown() (err error)

Shutdown the gRPC server gracefully.

func (*Server) Status

func (s *Server) Status(ctx context.Context, in *protocol.HealthCheck) (out *protocol.ServiceState, err error)

func (*Server) Transfer

func (s *Server) Transfer(ctx context.Context, in *protocol.SecureEnvelope) (out *protocol.SecureEnvelope, err error)

func (*Server) TransferStream

func (s *Server) TransferStream(stream protocol.TRISANetwork_TransferStreamServer) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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