Documentation
¶
Index ¶
- func RegisterBootstrap(kind string, bootstrap Bootstrap) (ok bool)
- type Bootstrap
- type BootstrapOptions
- type Client
- type ClientBuilder
- type ClientOptions
- type FastHttpClient
- type Handler
- type HandlerOptions
- type Manager
- type ManagerOptions
- type Node
- type Registration
- type Registrations
- type RegistrationsManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBootstrap ¶
Types ¶
type BootstrapOptions ¶
type BootstrapOptions struct { Log logs.Logger AppId string Config configures.Config }
type Client ¶
type Client interface { Do(ctx context.Context, method string, address string, uri string, header http.Header, body []byte) (status int, respHeader http.Header, respBody []byte, err error) Close() }
func FastHttpClientBuilder ¶
func FastHttpClientBuilder(options ClientOptions) (client Client, err error)
type ClientBuilder ¶
type ClientBuilder func(options ClientOptions) (client Client, err error)
type ClientOptions ¶
type FastHttpClient ¶
type FastHttpClient struct {
// contains filtered or unexported fields
}
func (*FastHttpClient) Close ¶
func (client *FastHttpClient) Close()
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(options HandlerOptions) *Handler
func (*Handler) Build ¶ added in v0.13.3
func (handler *Handler) Build(_ *server.HandlerOptions) (err error)
type HandlerOptions ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(options ManagerOptions) (manager *Manager, err error)
func (*Manager) Registrations ¶
func (manager *Manager) Registrations() (registrations *RegistrationsManager)
type ManagerOptions ¶
type Registration ¶
type Registration struct { Id string Name string Internal bool Address string // contains filtered or unexported fields }
func (*Registration) Key ¶
func (r *Registration) Key() (key string)
type Registrations ¶
type Registrations struct {
// contains filtered or unexported fields
}
func (*Registrations) Append ¶
func (r *Registrations) Append(v *Registration)
func (*Registrations) Get ¶
func (r *Registrations) Get(id string) (v *Registration, has bool)
func (*Registrations) Next ¶
func (r *Registrations) Next() (v *Registration, has bool)
func (*Registrations) Remove ¶
func (r *Registrations) Remove(v *Registration)
func (*Registrations) Size ¶
func (r *Registrations) Size() (size int)
type RegistrationsManager ¶
type RegistrationsManager struct {
// contains filtered or unexported fields
}
func (*RegistrationsManager) Close ¶
func (manager *RegistrationsManager) Close()
Click to show internal directories.
Click to hide internal directories.