server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKind    = errors.New("", errors.Alert, "Unknown server kind")
	ErrInvalidName    = errors.New("", errors.Alert, "Unknown server name")
	ErrInvalidVersion = errors.New("", errors.Alert, "Unknown server version")
)

Functions

This section is empty.

Types

type Addresses

type Addresses map[string]HostPort

type HostPort

type HostPort struct {
	Host string `json:"host,omitempty" yaml:"host,omitempty"`
	Port string `json:"port,omitempty" yaml:"port,omitempty"`
}

type Options

type Options struct {
	Kind ServerKind
}

type Server

type Server interface {
	Run(chan struct{}, chan error)
}

type ServerKind

type ServerKind string
const (
	GRPC ServerKind = "grpc"
	HTTP ServerKind = "http"
)

Jump to

Keyboard shortcuts

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