grpc

package
v0.0.0-...-7838e69 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithAccountManager

func WithAccountManager(accountManager accountmanager.Service) Parameter

WithAccountManager sets the account manager for this module.

func WithCACert

func WithCACert(caCert []byte) Parameter

WithCACert sets the CA certificate for this module.

func WithID

func WithID(id uint64) Parameter

WithID sets the id for the server.

func WithListenAddress

func WithListenAddress(listenAddress string) Parameter

WithListenAddress sets the listen address for the server.

func WithLister

func WithLister(lister lister.Service) Parameter

WithLister sets the lister for this module.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.APIMonitor) Parameter

WithMonitor sets the monitor for this module.

func WithName

func WithName(name string) Parameter

WithName sets the name for the server.

func WithPeers

func WithPeers(peers peers.Service) Parameter

WithPeers sets the peers for this module.

func WithProcess

func WithProcess(process process.Service) Parameter

WithProcess sets the process for this module.

func WithServerCert

func WithServerCert(serverCert []byte) Parameter

WithServerCert sets the server certificate for this module.

func WithServerKey

func WithServerKey(serverKey []byte) Parameter

WithServerKey sets the server key for this module.

func WithSigner

func WithSigner(signer signer.Service) Parameter

WithSigner sets the signer for this module.

func WithWalletManager

func WithWalletManager(walletManager walletmanager.Service) Parameter

WithWalletManager sets the wallet manager for this module.

type Service

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

Service provides the features and functions for the GRPC daemon.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new API service over GRPC.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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