server

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SERVER = "server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata interface {
	// Get the value for the given key
	Get(key string) string
}

Metadata interface for getting the server related metadata

type Server

type Server interface {
	component.Component
	// Host returns server host
	Host() string
	// Port returns server port
	Port() int
	// Address returns the server address
	Address() string
	// RegistryTags returns server registry tags
	RegistryTags() []string
	// GetMetdata returns the server metadata
	GetMetadata(key string) interface{}
	// AddRegistryTags appends new tags to the existing tags slice
	AddRegistryTags(tags ...string)
	// Get string identifier of the server
	String() string
}

Server interface for implementing custom servers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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