Documentation
¶
Index ¶
- type Event
- type EventType
- type Records
- func (r *Records) ClearRecords()
- func (r *Records) GetRecord(svc, version string) (*url.URL, error)
- func (r *Records) IsServiceUnique(svc string) bool
- func (r *Records) RecordExists(svc, version string) bool
- func (r *Records) RemoveRecord(svc, version string, u *url.URL)
- func (r *Records) SetRecord(svc, version string, u *url.URL) bool
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Records ¶
type Records struct {
// contains filtered or unexported fields
}
Records contains mappings from a gRPC service to upstream hosts It holds one upstream for each service version
func (*Records) IsServiceUnique ¶
IsServiceUnique checks if there is only one version of a service
func (*Records) RecordExists ¶
RecordExists checks if a record exists
func (*Records) RemoveRecord ¶
RemoveRecord removes a record of the specified (service, version) pair
type Service ¶
type Service struct { *Records // contains filtered or unexported fields }
Service watches the Kubernetes API and updates records when there are changes to Service resources
func NewService ¶
NewService creates a new Service source
Click to show internal directories.
Click to hide internal directories.