Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery is a service that discovers all service endpoints in a consortium of peers
func New ¶
func New(handlerRegistry appDataHandlerRegistry, gossipProvider gossipProvider, peerCfg peerConfig, discoveryCfg discoveryConfig) *Discovery
New returns a discovery service
func (*Discovery) ServicesForChannel ¶
ServicesForChannel returns all services available on the given channel
func (*Discovery) UpdateLocalServicesForChannel ¶
UpdateLocalServicesForChannel updates the cache of services for the local peer
type Endpoint ¶
Endpoint contains the path and HTTP method of the REST endpoint
func NewEndpoint ¶
NewEndpoint returns a new Endpoint
type Service ¶
type Service struct { Service string `json:"service"` APIVersion string `json:"apiVersion,omitempty"` Domain string `json:"domain"` RootEndpoint string `json:"rootEndpoint"` Endpoints []Endpoint `json:"endpoints"` }
Service contains information about one or more endpoints for a service
func NewService ¶
NewService returns a new Service
Click to show internal directories.
Click to hide internal directories.