internalevent

package
v0.0.0-...-834ce46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventName_name = map[int32]string{
		0: "EVENT_NAME_USER_CREATED",
		1: "EVENT_NAME_PROJECT_CREATED",
		2: "EVENT_NAME_WRITE_KEY_GENERATED",
		3: "EVENT_NAME_TASK_CREATED",
	}
	EventName_value = map[string]int32{
		"EVENT_NAME_USER_CREATED":        0,
		"EVENT_NAME_PROJECT_CREATED":     1,
		"EVENT_NAME_WRITE_KEY_GENERATED": 2,
		"EVENT_NAME_TASK_CREATED":        3,
	}
)

Enum value maps for EventName.

View Source
var File_internalevent_internalevent_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	EventName     EventName              `protobuf:"varint,2,opt,name=event_name,json=eventName,proto3,enum=internalevent.EventName" json:"event_name,omitempty"`
	Time          *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	TracerCarrier map[string]string      `` /* 188-byte string literal not displayed */
	// Types that are assignable to Payload:
	//
	//	*Event_UserCreatedEvent
	//	*Event_ProjectCreatedEvent
	//	*Event_WriteKeyGeneratedEvent
	//	*Event_TaskCreatedEvent
	Payload isEvent_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetEventName

func (x *Event) GetEventName() EventName

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) GetPayload

func (m *Event) GetPayload() isEvent_Payload

func (*Event) GetProjectCreatedEvent

func (x *Event) GetProjectCreatedEvent() *ProjectCreatedEvent

func (*Event) GetTaskCreatedEvent

func (x *Event) GetTaskCreatedEvent() *TaskCreatedEvent

func (*Event) GetTime

func (x *Event) GetTime() *timestamppb.Timestamp

func (*Event) GetTracerCarrier

func (x *Event) GetTracerCarrier() map[string]string

func (*Event) GetUserCreatedEvent

func (x *Event) GetUserCreatedEvent() *UserCreatedEvent

func (*Event) GetWriteKeyGeneratedEvent

func (x *Event) GetWriteKeyGeneratedEvent() *WriteKeyGeneratedEvent

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventName

type EventName int32
const (
	EventName_EVENT_NAME_USER_CREATED        EventName = 0
	EventName_EVENT_NAME_PROJECT_CREATED     EventName = 1
	EventName_EVENT_NAME_WRITE_KEY_GENERATED EventName = 2
	EventName_EVENT_NAME_TASK_CREATED        EventName = 3
)

func (EventName) Descriptor

func (EventName) Descriptor() protoreflect.EnumDescriptor

func (EventName) Enum

func (x EventName) Enum() *EventName

func (EventName) EnumDescriptor deprecated

func (EventName) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventName.Descriptor instead.

func (EventName) Number

func (x EventName) Number() protoreflect.EnumNumber

func (EventName) String

func (x EventName) String() string

func (EventName) Type

type Event_ProjectCreatedEvent

type Event_ProjectCreatedEvent struct {
	ProjectCreatedEvent *ProjectCreatedEvent `protobuf:"bytes,101,opt,name=project_created_event,json=projectCreatedEvent,proto3,oneof"`
}

type Event_TaskCreatedEvent

type Event_TaskCreatedEvent struct {
	TaskCreatedEvent *TaskCreatedEvent `protobuf:"bytes,103,opt,name=task_created_event,json=taskCreatedEvent,proto3,oneof"`
}

type Event_UserCreatedEvent

type Event_UserCreatedEvent struct {
	UserCreatedEvent *UserCreatedEvent `protobuf:"bytes,100,opt,name=user_created_event,json=userCreatedEvent,proto3,oneof"`
}

type Event_WriteKeyGeneratedEvent

type Event_WriteKeyGeneratedEvent struct {
	WriteKeyGeneratedEvent *WriteKeyGeneratedEvent `protobuf:"bytes,102,opt,name=write_key_generated_event,json=writeKeyGeneratedEvent,proto3,oneof"`
}

type ProjectCreatedEvent

type ProjectCreatedEvent struct {
	Project *project.Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectCreatedEvent) Descriptor deprecated

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

Deprecated: Use ProjectCreatedEvent.ProtoReflect.Descriptor instead.

func (*ProjectCreatedEvent) GetProject

func (x *ProjectCreatedEvent) GetProject() *project.Project

func (*ProjectCreatedEvent) ProtoMessage

func (*ProjectCreatedEvent) ProtoMessage()

func (*ProjectCreatedEvent) ProtoReflect

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

func (*ProjectCreatedEvent) Reset

func (x *ProjectCreatedEvent) Reset()

func (*ProjectCreatedEvent) String

func (x *ProjectCreatedEvent) String() string

type TaskCreatedEvent

type TaskCreatedEvent struct {
	Task *task.Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskCreatedEvent) Descriptor deprecated

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

Deprecated: Use TaskCreatedEvent.ProtoReflect.Descriptor instead.

func (*TaskCreatedEvent) GetTask

func (x *TaskCreatedEvent) GetTask() *task.Task

func (*TaskCreatedEvent) ProtoMessage

func (*TaskCreatedEvent) ProtoMessage()

func (*TaskCreatedEvent) ProtoReflect

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

func (*TaskCreatedEvent) Reset

func (x *TaskCreatedEvent) Reset()

func (*TaskCreatedEvent) String

func (x *TaskCreatedEvent) String() string

type UserCreatedEvent

type UserCreatedEvent struct {
	UserId    string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UserCreatedEvent) Descriptor deprecated

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

Deprecated: Use UserCreatedEvent.ProtoReflect.Descriptor instead.

func (*UserCreatedEvent) GetCreatedAt

func (x *UserCreatedEvent) GetCreatedAt() *timestamppb.Timestamp

func (*UserCreatedEvent) GetUserId

func (x *UserCreatedEvent) GetUserId() string

func (*UserCreatedEvent) ProtoMessage

func (*UserCreatedEvent) ProtoMessage()

func (*UserCreatedEvent) ProtoReflect

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

func (*UserCreatedEvent) Reset

func (x *UserCreatedEvent) Reset()

func (*UserCreatedEvent) String

func (x *UserCreatedEvent) String() string

type WriteKeyGeneratedEvent

type WriteKeyGeneratedEvent struct {
	Project *project.Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteKeyGeneratedEvent) Descriptor deprecated

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

Deprecated: Use WriteKeyGeneratedEvent.ProtoReflect.Descriptor instead.

func (*WriteKeyGeneratedEvent) GetProject

func (x *WriteKeyGeneratedEvent) GetProject() *project.Project

func (*WriteKeyGeneratedEvent) ProtoMessage

func (*WriteKeyGeneratedEvent) ProtoMessage()

func (*WriteKeyGeneratedEvent) ProtoReflect

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

func (*WriteKeyGeneratedEvent) Reset

func (x *WriteKeyGeneratedEvent) Reset()

func (*WriteKeyGeneratedEvent) String

func (x *WriteKeyGeneratedEvent) String() string

Jump to

Keyboard shortcuts

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