publicapi

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Topic = "publicapi"

Variables

View Source
var (
	EventType_name = map[int32]string{
		0: "EventTypeUnknown",
		1: "EventTypeAPIEnable",
		2: "EventTypeAPIDisable",
		3: "EventTypeAPIUpdate",
	}
	EventType_value = map[string]int32{
		"EventTypeUnknown":    0,
		"EventTypeAPIEnable":  1,
		"EventTypeAPIDisable": 2,
		"EventTypeAPIUpdate":  3,
	}
)

Enum value maps for EventType.

View Source
var File_proto_publicapi_events_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type APIDisable

type APIDisable struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*APIDisable) Descriptor deprecated

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

Deprecated: Use APIDisable.ProtoReflect.Descriptor instead.

func (*APIDisable) GetName

func (x *APIDisable) GetName() string

func (*APIDisable) ProtoMessage

func (*APIDisable) ProtoMessage()

func (*APIDisable) ProtoReflect

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

func (*APIDisable) Reset

func (x *APIDisable) Reset()

func (*APIDisable) String

func (x *APIDisable) String() string

type APIEnable

type APIEnable struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*APIEnable) Descriptor deprecated

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

Deprecated: Use APIEnable.ProtoReflect.Descriptor instead.

func (*APIEnable) GetName

func (x *APIEnable) GetName() string

func (*APIEnable) ProtoMessage

func (*APIEnable) ProtoMessage()

func (*APIEnable) ProtoReflect

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

func (*APIEnable) Reset

func (x *APIEnable) Reset()

func (*APIEnable) String

func (x *APIEnable) String() string

type APIUpdate

type APIUpdate struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*APIUpdate) Descriptor deprecated

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

Deprecated: Use APIUpdate.ProtoReflect.Descriptor instead.

func (*APIUpdate) GetName

func (x *APIUpdate) GetName() string

func (*APIUpdate) ProtoMessage

func (*APIUpdate) ProtoMessage()

func (*APIUpdate) ProtoReflect

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

func (*APIUpdate) Reset

func (x *APIUpdate) Reset()

func (*APIUpdate) String

func (x *APIUpdate) String() string

type Event

type Event struct {
	Type       EventType   `protobuf:"varint,1,opt,name=type,proto3,enum=publicapievents.EventType" json:"type,omitempty"`
	ApiEnable  *APIEnable  `protobuf:"bytes,2,opt,name=api_enable,json=apiEnable,proto3" json:"api_enable,omitempty"`
	ApiDisable *APIDisable `protobuf:"bytes,3,opt,name=api_disable,json=apiDisable,proto3" json:"api_disable,omitempty"`
	ApiUpdate  *APIUpdate  `protobuf:"bytes,4,opt,name=api_update,json=apiUpdate,proto3" json:"api_update,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetApiDisable

func (x *Event) GetApiDisable() *APIDisable

func (*Event) GetApiEnable

func (x *Event) GetApiEnable() *APIEnable

func (*Event) GetApiUpdate

func (x *Event) GetApiUpdate() *APIUpdate

func (*Event) GetType

func (x *Event) GetType() EventType

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 EventType

type EventType int32
const (
	EventType_EventTypeUnknown    EventType = 0
	EventType_EventTypeAPIEnable  EventType = 1
	EventType_EventTypeAPIDisable EventType = 2
	EventType_EventTypeAPIUpdate  EventType = 3
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

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

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

Jump to

Keyboard shortcuts

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