cloudstate

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDT

type CRDT struct {
	// contains filtered or unexported fields
}

func NewCRDT

func NewCRDT(logger logger.Logger) *CRDT

func (*CRDT) BulkDelete

func (c *CRDT) BulkDelete(req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation

func (*CRDT) BulkSet

func (c *CRDT) BulkSet(req []state.SetRequest) error

BulkSet performs a bulks save operation

func (*CRDT) Delete

func (c *CRDT) Delete(req *state.DeleteRequest) error

Delete performs a delete operation

func (*CRDT) Discover

func (c *CRDT) Discover(ctx context.Context, in *pb.ProxyInfo) (*pb.EntitySpec, error)

func (*CRDT) Get

func (c *CRDT) Get(req *state.GetRequest) (*state.GetResponse, error)

Get retrieves state from CloudState with a key

func (*CRDT) Handle

func (c *CRDT) Handle(srv pb.Crdt_HandleServer) error

func (*CRDT) Init

func (c *CRDT) Init(metadata state.Metadata) error

Init does metadata and connection parsing

func (*CRDT) ReportError

func (c *CRDT) ReportError(ctx context.Context, in *pb.UserFunctionError) (*empty.Empty, error)

func (*CRDT) Set

func (c *CRDT) Set(req *state.SetRequest) error

Set saves state into CloudState

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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