server

package
v0.0.0-...-ab689eb Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: BSD-3-Clause-Clear Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth                    auth.Config        `yaml:"auth"`
	GRPC                    GRPCConfig         `yaml:"grpc"`
	HSM                     security.HSMConfig `yaml:"hsm"`
	TLS                     TLSConfig          `yaml:"tls"`
	WellKnownConfigRegister func(namespace string, config any) error
	Port                    int    `yaml:"port" default:"9000"`
	Host                    string `yaml:"host,omitempty"`
}

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type GRPCConfig

type GRPCConfig struct {
	ReflectionEnabled bool `yaml:"reflectionEnabled" default:"true"`
}

type OpenTDFServer

type OpenTDFServer struct {
	Mux           *runtime.ServeMux
	HTTPServer    *http.Server
	GRPCServer    *grpc.Server
	GRPCInProcess *inProcessServer
	HSM           *security.HSMSession
}

func NewOpenTDFServer

func NewOpenTDFServer(config Config, d *db.Client) (*OpenTDFServer, error)

func (OpenTDFServer) Start

func (s OpenTDFServer) Start()

func (OpenTDFServer) Stop

func (s OpenTDFServer) Stop()

type TLSConfig

type TLSConfig struct {
	Enabled bool   `yaml:"enabled" default:"false"`
	Cert    string `yaml:"cert"`
	Key     string `yaml:"key"`
}

Jump to

Keyboard shortcuts

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