gravity_sdk_types_event

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_types_event_event_proto protoreflect.FileDescriptor

Functions

func Marshal added in v0.0.40

func Marshal(event *Event) ([]byte, error)

func Unmarshal added in v0.0.40

func Unmarshal(data []byte, event *Event) error

Types

type Event

type Event struct {
	EventName string           `protobuf:"bytes,1,opt,name=eventName,proto3" json:"eventName,omitempty"`
	Meta      *structpb.Struct `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	Payload   *structpb.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetEventName added in v0.0.40

func (x *Event) GetEventName() string

func (*Event) GetMeta added in v0.0.40

func (x *Event) GetMeta() *structpb.Struct

func (*Event) GetPayload added in v0.0.40

func (x *Event) GetPayload() *structpb.Struct

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect added in v0.0.40

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) SetPayload added in v0.0.40

func (event *Event) SetPayload(mapData map[string]interface{}) error

func (*Event) String

func (x *Event) String() string

Jump to

Keyboard shortcuts

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