Documentation
¶
Index ¶
- Constants
- Variables
- type APIDisable
- type APIEnable
- type APIUpdate
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetApiDisable() *APIDisable
- func (x *Event) GetApiEnable() *APIEnable
- func (x *Event) GetApiUpdate() *APIUpdate
- func (x *Event) GetType() EventType
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventType
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) ProtoMessage ¶
func (*APIEnable) ProtoMessage()
func (*APIEnable) ProtoReflect ¶
func (x *APIEnable) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*APIUpdate) ProtoMessage()
func (*APIUpdate) ProtoReflect ¶
func (x *APIUpdate) ProtoReflect() protoreflect.Message
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) GetApiDisable ¶
func (x *Event) GetApiDisable() *APIDisable
func (*Event) GetApiEnable ¶
func (*Event) GetApiUpdate ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.