Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HmacKeys ¶ added in v0.3.0
func (*HmacKeys) GetLatestKey ¶ added in v0.3.0
type NewService ¶ added in v0.3.0
type NewService struct {
ServiceName string `json:"service_name"`
ServiceSummary string `json:"service_summary"`
ServiceOnline bool `json:"service_online"`
ServiceProtocol string `json:"service_protocol"`
ServiceVersion string `json:"service_version"`
BaseURL string `json:"base_url"`
Routes map[string]interface{} `json:"routes"`
}
Only used for documentation. Not used for database
type Service ¶ added in v0.3.0
type Service struct {
ID int `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"update_at"`
DeletedAt time.Time `json:"deleted_at"`
ServiceName string `json:"service_name"`
ServiceSummary string `json:"service_summary"`
ServiceOnline bool `json:"service_online"`
ServiceProtocol string `json:"service_protocol"`
ServiceVersion string `json:"service_version"`
BaseURL string `json:"base_url"`
Routes datatypes.JSON `json:"routes"`
}
func (*Service) RegisterAtGateway ¶ added in v0.3.0
type ServicePool ¶ added in v0.3.0
func (*ServicePool) AddService ¶ added in v0.3.0
func (sp *ServicePool) AddService(s *Service)
func (*ServicePool) GetNextPeer ¶ added in v0.3.0
func (sp *ServicePool) GetNextPeer() *Service
func (*ServicePool) HealthCheck ¶ added in v0.3.0
func (sp *ServicePool) HealthCheck()
func (*ServicePool) MarkServiceStatus ¶ added in v0.3.0
func (sp *ServicePool) MarkServiceStatus(serviceID int, alive bool)
func (*ServicePool) Print ¶ added in v0.3.0
func (sp *ServicePool) Print()
type ServicePoolStatus ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.