Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interacter ¶
type Interacter interface { List() ([]*v1.WtEndpoint, error) // if endpoints type is static, do nothing. // if endpoints type is dynamic, watch the changes in endpoints. Watch() }
Interacter is the interface that wraps the required methods to interact with DB or service registry that holds the endpoints information.
func NewDynamicInteracter ¶
func NewDynamicInteracter(sid string, updateCh *channels.RingChannel, stopCh chan struct{}) Interacter
NewDynamicInteracter creates a new static interacter.
func NewInteracter ¶
func NewInteracter(sid string, updateCh *channels.RingChannel, stopCh chan struct{}) Interacter
NewInteracter creates a new Interacter.
func NewStaticInteracter ¶
func NewStaticInteracter(sid string) Interacter
NewStaticInteracter creates a new static interacter.
Click to show internal directories.
Click to hide internal directories.