Documentation ¶
Index ¶
- Constants
- func NewAlreadyRegisteredError() error
- func NewClientNotFoundError(clientId string) error
- func NewMaxClientsReachedError(max int) error
- func NewTenantNotFoundError(tenant string) error
- func NewTenantsClientNotFoundError(clientId string) error
- type Client
- type ClientState
- type Duration
- type Endpoint
- type EndpointType
- type ErrAlreadyRegistered
- type ErrClientNotFound
- type ErrMaxClientsReached
- type ErrTenantNotFound
- type ErrTenantsClientNotFound
- type JoinRequest
- type JoinResponse
- type Ping
- type Pong
- type PongType
- type Registry
- type Tenant
Constants ¶
View Source
const ContentTypeApplicationJson = "application/json"
View Source
const ContentTypeHeader = "Content-Type"
View Source
const TenantDefault = "default"
View Source
const TenantKey = "tenant"
Variables ¶
This section is empty.
Functions ¶
func NewAlreadyRegisteredError ¶
func NewAlreadyRegisteredError() error
func NewClientNotFoundError ¶
func NewTenantNotFoundError ¶
Types ¶
type ClientState ¶
type ClientState uint8
const ( ClientStateUnknown ClientState = iota ClientStateStarting ClientStateUp ClientStateFailing ClientStateDown ClientStateRemoved )
func (ClientState) MarshalJSON ¶
func (ds ClientState) MarshalJSON() ([]byte, error)
func (ClientState) String ¶
func (ds ClientState) String() string
func (*ClientState) UnmarshalJSON ¶
func (ds *ClientState) UnmarshalJSON(data []byte) (err error)
type EndpointType ¶
type EndpointType uint8
const ( UnknownEndpoint EndpointType = iota HttpEndpoint HttpsEndpoint GrpcEndpoint )
type ErrAlreadyRegistered ¶
type ErrAlreadyRegistered struct {
// contains filtered or unexported fields
}
func (*ErrAlreadyRegistered) Error ¶
func (e *ErrAlreadyRegistered) Error() string
func (*ErrAlreadyRegistered) Is ¶
func (e *ErrAlreadyRegistered) Is(tgt error) bool
type ErrClientNotFound ¶
type ErrClientNotFound struct {
// contains filtered or unexported fields
}
func (*ErrClientNotFound) Error ¶
func (e *ErrClientNotFound) Error() string
func (*ErrClientNotFound) Is ¶
func (e *ErrClientNotFound) Is(tgt error) bool
type ErrMaxClientsReached ¶
type ErrMaxClientsReached struct {
// contains filtered or unexported fields
}
func (*ErrMaxClientsReached) Error ¶
func (e *ErrMaxClientsReached) Error() string
func (*ErrMaxClientsReached) Is ¶
func (e *ErrMaxClientsReached) Is(tgt error) bool
type ErrTenantNotFound ¶
type ErrTenantNotFound struct {
// contains filtered or unexported fields
}
func (*ErrTenantNotFound) Error ¶
func (e *ErrTenantNotFound) Error() string
func (*ErrTenantNotFound) Is ¶
func (e *ErrTenantNotFound) Is(tgt error) bool
type ErrTenantsClientNotFound ¶
type ErrTenantsClientNotFound struct {
// contains filtered or unexported fields
}
func (*ErrTenantsClientNotFound) Error ¶
func (e *ErrTenantsClientNotFound) Error() string
func (*ErrTenantsClientNotFound) Is ¶
func (e *ErrTenantsClientNotFound) Is(tgt error) bool
type JoinRequest ¶
type JoinResponse ¶
Click to show internal directories.
Click to hide internal directories.