commands

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_eventsourcing_commands_command_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Command

type Command struct {

	// Unique identifier of the aggregate the command applies to (UUID 128-bit
	// number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // required
	// Type of the command
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Command type specific data
	Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Command is a command to be executed by the CommandHandler

func (*Command) Descriptor deprecated

func (*Command) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetData

func (x *Command) GetData() *anypb.Any

func (*Command) GetId

func (x *Command) GetId() string

func (*Command) GetType

func (x *Command) GetType() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type TestCommandData

type TestCommandData struct {
	Test      string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`
	TestCount int32  `protobuf:"varint,2,opt,name=test_count,json=testCount,proto3" json:"test_count,omitempty"`
	// contains filtered or unexported fields
}

func (*TestCommandData) Descriptor deprecated

func (*TestCommandData) Descriptor() ([]byte, []int)

Deprecated: Use TestCommandData.ProtoReflect.Descriptor instead.

func (*TestCommandData) GetTest

func (x *TestCommandData) GetTest() string

func (*TestCommandData) GetTestCount

func (x *TestCommandData) GetTestCount() int32

func (*TestCommandData) ProtoMessage

func (*TestCommandData) ProtoMessage()

func (*TestCommandData) ProtoReflect

func (x *TestCommandData) ProtoReflect() protoreflect.Message

func (*TestCommandData) Reset

func (x *TestCommandData) Reset()

func (*TestCommandData) String

func (x *TestCommandData) String() string

Jump to

Keyboard shortcuts

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