Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandService ¶
type CommandService interface {
Close()
}
type MatchDefinition ¶
func (*MatchDefinition) CachePrefix ¶
func (m *MatchDefinition) CachePrefix() string
func (*MatchDefinition) String ¶
func (m *MatchDefinition) String() string
type Service ¶
type Service interface {
components.ServiceComponent
Stream(ctx context.Context, projectID, applicationID, protocol string) (Stream, error)
StartStream(name, protocol string, handler StreamHandler) (CommandService, error)
LookupService(matcher *MatchDefinition) (config *structureSpec.Service, application string, err error)
Discover(ctx context.Context, max int, timeout time.Duration) ([]peer.AddrInfo, error)
}
type ServiceResource ¶
type Serviceable ¶
type Serviceable interface {
components.Serviceable
Handle(data *command.Command) (time.Time, response.Response, error)
Name() string
Close()
Config() *structureSpec.Function
}
Click to show internal directories.
Click to hide internal directories.