grpc

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, eventLog eventlog.EventManager, keystore keystore.Keystore, storage *storage.Storage) (*grpcServer, error)

New creates and starts gRPC services.

Types

type Config

type Config struct {
	// Addr to listen for gRPC connections
	Addr        string             `yaml:"addr"`
	TunnelKey   string             `yaml:"tunnel_key,omitempty"`
	TlsSelfSign *TlsSelfSignConfig `yaml:"tls_self_sign,omitempty"`
}

type TlsSelfSignConfig added in v0.3.5

type TlsSelfSignConfig struct {
	AllowedIPs   []string `yaml:"allowed_ips,omitempty"`
	AllowedNames []string `yaml:"allowed_names,omitempty"`
	// Storage directory is used to keep load self signed certs
	Dir string `yaml:"dir,omitempty"`
}

Jump to

Keyboard shortcuts

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