discovery

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package discovery implements the Cloudstate entity discovery server.

Index

Constants

View Source
const (
	SupportLibraryName    = "cloudstate-go-support"
	SupportLibraryVersion = "0.2.0"
	ProtocolMajorVersion  = 0
	ProtocolMinorVersion  = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityDiscoveryServer

type EntityDiscoveryServer struct {
	protocol.UnimplementedEntityDiscoveryServer
	// contains filtered or unexported fields
}

EntityDiscoveryServer implements the Cloudstate discovery protocol.

func NewServer

func NewServer(config protocol.Config) *EntityDiscoveryServer

NewServer returns a new and initialized EntityDiscoveryServer.

func (*EntityDiscoveryServer) Discover

Discover returns an entity spec for registered entities.

func (*EntityDiscoveryServer) RegisterActionEntity added in v0.3.0

func (s *EntityDiscoveryServer) RegisterActionEntity(entity *action.Entity, config protocol.DescriptorConfig) error

func (*EntityDiscoveryServer) RegisterCRDTEntity

func (s *EntityDiscoveryServer) RegisterCRDTEntity(entity *crdt.Entity, config protocol.DescriptorConfig) error

func (*EntityDiscoveryServer) RegisterEventSourcedEntity

func (s *EntityDiscoveryServer) RegisterEventSourcedEntity(entity *eventsourced.Entity, config protocol.DescriptorConfig) error

func (*EntityDiscoveryServer) RegisterValueEntity added in v0.3.0

func (s *EntityDiscoveryServer) RegisterValueEntity(entity *value.Entity, config protocol.DescriptorConfig) error

func (*EntityDiscoveryServer) ReportError

ReportError logs any user function error reported by the Cloudstate proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL