grpc

package
v0.0.0-...-e30ce0b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrpcServerKindApi = "apiserver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	io.Closer
	apiv1.APIServer
}

func NewAPI

func NewAPI(opts APIOptions) API

type APIOptions

type APIOptions struct {
	Processor *processor.Processor
}

type Server

type Server interface {
	io.Closer
	StartNonBlocking() error
}

func NewAPIServer

func NewAPIServer(api API, config ServerConfig, proxy messaging.Proxy) Server

func NewInternalServer

func NewInternalServer() Server

type ServerConfig

type ServerConfig struct {
	AppID                string
	HostAddress          string
	Port                 int
	APIListenAddresses   []string
	NameSpace            string
	TrustDomain          string
	MaxRequestBodySizeMB int
	UnixDomainSocket     string
	ReadBufferSizeKB     int
	EnableAPILogging     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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