discovery

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 16 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 {
	// 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) 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) 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