subjects

package
v0.0.0-...-2cb8bce Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Subject_name = map[int32]string{
		0: "UNKNOWN_SUBJECT",
		1: "TICKET_CREATED",
		2: "TICKET_UPDATED",
		3: "ORDER_CREATED",
		4: "ORDER_CANCELLED",
	}
	Subject_value = map[string]int32{
		"UNKNOWN_SUBJECT": 0,
		"TICKET_CREATED":  1,
		"TICKET_UPDATED":  2,
		"ORDER_CREATED":   3,
		"ORDER_CANCELLED": 4,
	}
)

Enum value maps for Subject.

View Source
var File_natsSubjects_proto protoreflect.FileDescriptor

Functions

func StringifySubject

func StringifySubject(enum Subject) (string, error)

Types

type Subject

type Subject int32
const (
	Subject_UNKNOWN_SUBJECT Subject = 0
	Subject_TICKET_CREATED  Subject = 1
	Subject_TICKET_UPDATED  Subject = 2
	Subject_ORDER_CREATED   Subject = 3
	Subject_ORDER_CANCELLED Subject = 4
)

func SubjectifyString

func SubjectifyString(subject string) (Subject, error)

func (Subject) Descriptor

func (Subject) Descriptor() protoreflect.EnumDescriptor

func (Subject) Enum

func (x Subject) Enum() *Subject

func (Subject) EnumDescriptor deprecated

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

Deprecated: Use Subject.Descriptor instead.

func (Subject) Number

func (x Subject) Number() protoreflect.EnumNumber

func (Subject) String

func (x Subject) String() string

func (Subject) Type

func (Subject) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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