service

package
v3.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveGRPCServerConfigFile

func SaveGRPCServerConfigFile(locations Locator, config *Config, filename string) (string, error)

SaveGRPCServerConfigFile save GRPC configuration file.

Types

type Config

type Config struct {
	Port           int    `json:"port"`
	Cert           string `json:"cert"`
	Token          string `json:"token"`
	FileSocketPath string `json:"fileSocketPath"`
}

Config is a structure containing the service configuration data that are exchanged by the gRPC server and client.

func (*Config) Load

func (s *Config) Load(path string) error

Load loads a gRPC service configuration from file.

type Locator

type Locator interface {
	ProvideSettingsPath() (string, error)
	ProvideUnleashCachePath() (string, error)
}

Jump to

Keyboard shortcuts

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