Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServiceNotFound error = ErrNotFound("service not found") ErrDestinationNotFound error = ErrNotFound("destination not found") ErrServiceAlreadyExists = errors.New("service already exists") ErrDestinationAlreadyExists = errors.New("destination already exists") )
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { Name string `valid:"required"` Host string `valid:"required"` Port uint16 `valid:"required"` Weight int32 Mode string `valid:"required"` ServiceId string `valid:"required"` Stats *DestinationStats }
func (Destination) GetId ¶
func (dst Destination) GetId() string
func (Destination) KernelKey ¶
func (dst Destination) KernelKey() string
type DestinationStats ¶
type ErrNotFound ¶
type ErrNotFound string
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
type Service ¶
type Service struct { Name string `valid:"required"` Host string Port uint16 `valid:"required"` Protocol string `valid:"required"` Scheduler string `valid:"required"` Destinations []Destination Stats *ServiceStats }
Click to show internal directories.
Click to hide internal directories.