transport

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpointer

type Endpointer interface {
	Endpoint() (*url.URL, error)
}

Endpointer is registry endpoint.

type Option added in v1.2.1

type Option func(si *ServiceInfo)

func WithAddress added in v1.2.1

func WithAddress(address string) Option

Address with ServiceInfo address.

func WithName added in v1.2.1

func WithName(name string) Option

Name with ServiceInfo name.

func WithScheme added in v1.2.1

func WithScheme(scheme string) Option

Scheme with ServiceInfo scheme.

type Server

type Server interface {
	Start(context.Context) error
	Stop() error
	GracefullyStop(context.Context) error
}

Server ...

type ServiceInfo added in v1.2.1

type ServiceInfo struct {
	Name    string `json:"name"`
	Scheme  string `json:"scheme"`
	Address string `json:"address"`
}

ServiceInfo represents service info

func ApplyOptions added in v1.2.1

func ApplyOptions(opts ...Option) ServiceInfo

func (*ServiceInfo) Label added in v1.2.1

func (si *ServiceInfo) Label() string

Label ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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