Documentation ¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetFail() *Fail
- func (x *Event) GetInfo() isEvent_Info
- func (x *Event) GetInstance() *Instance
- func (x *Event) GetModule() *Module
- func (x *Event) GetType() Type
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_Fail
- type Event_Instance
- type Event_Module
- type Fail
- func (*Fail) Descriptor() ([]byte, []int)deprecated
- func (x *Fail) GetFunction() string
- func (x *Fail) GetInstance() string
- func (x *Fail) GetModule() string
- func (x *Fail) GetSource() string
- func (x *Fail) GetSubsystem() string
- func (x *Fail) GetType() Fail_Type
- func (*Fail) ProtoMessage()
- func (x *Fail) ProtoReflect() protoreflect.Message
- func (x *Fail) Reset()
- func (x *Fail) String() string
- type Fail_Type
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetCompiled() bool
- func (x *Instance) GetFunction() string
- func (x *Instance) GetInstance() string
- func (x *Instance) GetModule() string
- func (x *Instance) GetPersist() bool
- func (x *Instance) GetStatus() *server.Status
- func (x *Instance) GetSuspended() bool
- func (x *Instance) GetTagCount() int32
- func (x *Instance) GetTransient() bool
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (x *Instance) String() string
- type Module
- func (*Module) Descriptor() ([]byte, []int)deprecated
- func (x *Module) GetCompiled() bool
- func (x *Module) GetLength() int64
- func (x *Module) GetModule() string
- func (x *Module) GetSource() string
- func (x *Module) GetTagCount() int32
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) String() string
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "UNSPECIFIED", 1: "FAIL_INTERNAL", 2: "FAIL_NETWORK", 3: "FAIL_PROTOCOL", 4: "FAIL_REQUEST", 5: "MODULE_LIST", 6: "MODULE_INFO", 7: "MODULE_UPLOAD_NEW", 8: "MODULE_UPLOAD_EXIST", 9: "MODULE_SOURCE_NEW", 10: "MODULE_SOURCE_EXIST", 11: "MODULE_DOWNLOAD", 12: "MODULE_PIN", 13: "MODULE_UNPIN", 14: "INSTANCE_LIST", 15: "INSTANCE_INFO", 16: "INSTANCE_CREATE_KNOWN", 17: "INSTANCE_CREATE_STREAM", 18: "INSTANCE_STOP", 19: "INSTANCE_DELETE", 20: "INSTANCE_CONNECT", 21: "INSTANCE_DISCONNECT", 22: "INSTANCE_WAIT", 23: "INSTANCE_KILL", 24: "INSTANCE_SUSPEND", 25: "INSTANCE_RESUME", 26: "INSTANCE_SNAPSHOT", 27: "INSTANCE_UPDATE", 28: "INSTANCE_DEBUG", } Type_value = map[string]int32{ "UNSPECIFIED": 0, "FAIL_INTERNAL": 1, "FAIL_NETWORK": 2, "FAIL_PROTOCOL": 3, "FAIL_REQUEST": 4, "MODULE_LIST": 5, "MODULE_INFO": 6, "MODULE_UPLOAD_NEW": 7, "MODULE_UPLOAD_EXIST": 8, "MODULE_SOURCE_NEW": 9, "MODULE_SOURCE_EXIST": 10, "MODULE_DOWNLOAD": 11, "MODULE_PIN": 12, "MODULE_UNPIN": 13, "INSTANCE_LIST": 14, "INSTANCE_INFO": 15, "INSTANCE_CREATE_KNOWN": 16, "INSTANCE_CREATE_STREAM": 17, "INSTANCE_STOP": 18, "INSTANCE_DELETE": 19, "INSTANCE_CONNECT": 20, "INSTANCE_DISCONNECT": 21, "INSTANCE_WAIT": 22, "INSTANCE_KILL": 23, "INSTANCE_SUSPEND": 24, "INSTANCE_RESUME": 25, "INSTANCE_SNAPSHOT": 26, "INSTANCE_UPDATE": 27, "INSTANCE_DEBUG": 28, } )
Enum value maps for Type.
View Source
var ( Fail_Type_name = map[int32]string{ 0: "INTERNAL", 1: "UNSUPPORTED", 2: "CLIENT_DENIED", 3: "PAYLOAD_ERROR", 4: "PRINCIPAL_KEY_ERROR", 5: "AUTH_MISSING", 6: "AUTH_INVALID", 7: "AUTH_EXPIRED", 8: "AUTH_REUSED", 9: "AUTH_DENIED", 10: "SCOPE_TOO_LARGE", 11: "RESOURCE_DENIED", 12: "RESOURCE_LIMIT", 13: "RATE_LIMIT", 14: "MODULE_NOT_FOUND", 15: "MODULE_HASH_MISMATCH", 16: "MODULE_ERROR", 17: "FUNCTION_NOT_FOUND", 18: "PROGRAM_ERROR", 19: "INSTANCE_NOT_FOUND", 20: "INSTANCE_ID_INVALID", 21: "INSTANCE_ID_EXISTS", 22: "INSTANCE_STATUS", 23: "INSTANCE_NO_CONNECT", 24: "INSTANCE_DEBUG_STATE", } Fail_Type_value = map[string]int32{ "INTERNAL": 0, "UNSUPPORTED": 1, "CLIENT_DENIED": 2, "PAYLOAD_ERROR": 3, "PRINCIPAL_KEY_ERROR": 4, "AUTH_MISSING": 5, "AUTH_INVALID": 6, "AUTH_EXPIRED": 7, "AUTH_REUSED": 8, "AUTH_DENIED": 9, "SCOPE_TOO_LARGE": 10, "RESOURCE_DENIED": 11, "RESOURCE_LIMIT": 12, "RATE_LIMIT": 13, "MODULE_NOT_FOUND": 14, "MODULE_HASH_MISMATCH": 15, "MODULE_ERROR": 16, "FUNCTION_NOT_FOUND": 17, "PROGRAM_ERROR": 18, "INSTANCE_NOT_FOUND": 19, "INSTANCE_ID_INVALID": 20, "INSTANCE_ID_EXISTS": 21, "INSTANCE_STATUS": 22, "INSTANCE_NO_CONNECT": 23, "INSTANCE_DEBUG_STATE": 24, } )
Enum value maps for Fail_Type.
View Source
var File_gate_pb_server_event_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=gate.server.event.Type" json:"type,omitempty"` // Types that are valid to be assigned to Info: // // *Event_Fail // *Event_Module // *Event_Instance Info isEvent_Info `protobuf_oneof:"info"` // contains filtered or unexported fields }
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_Fail ¶
type Event_Fail struct {
Fail *Fail `protobuf:"bytes,2,opt,name=fail,proto3,oneof"`
}
type Event_Instance ¶
type Event_Instance struct {
Instance *Instance `protobuf:"bytes,4,opt,name=instance,proto3,oneof"`
}
type Event_Module ¶
type Event_Module struct {
Module *Module `protobuf:"bytes,3,opt,name=module,proto3,oneof"`
}
type Fail ¶
type Fail struct { Type Fail_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gate.server.event.Fail_Type" json:"type,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Module string `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"` Function string `protobuf:"bytes,4,opt,name=function,proto3" json:"function,omitempty"` Instance string `protobuf:"bytes,5,opt,name=instance,proto3" json:"instance,omitempty"` Subsystem string `protobuf:"bytes,6,opt,name=subsystem,proto3" json:"subsystem,omitempty"` // contains filtered or unexported fields }
func (*Fail) ProtoReflect ¶
func (x *Fail) ProtoReflect() protoreflect.Message
type Fail_Type ¶
type Fail_Type int32
const ( Fail_INTERNAL Fail_Type = 0 // FAIL_REQUEST (add new values also to gate/server/internal/error/failrequest): Fail_UNSUPPORTED Fail_Type = 1 Fail_CLIENT_DENIED Fail_Type = 2 Fail_PAYLOAD_ERROR Fail_Type = 3 Fail_PRINCIPAL_KEY_ERROR Fail_Type = 4 Fail_AUTH_MISSING Fail_Type = 5 Fail_AUTH_INVALID Fail_Type = 6 Fail_AUTH_EXPIRED Fail_Type = 7 Fail_AUTH_REUSED Fail_Type = 8 Fail_AUTH_DENIED Fail_Type = 9 Fail_SCOPE_TOO_LARGE Fail_Type = 10 Fail_RESOURCE_DENIED Fail_Type = 11 Fail_RESOURCE_LIMIT Fail_Type = 12 Fail_RATE_LIMIT Fail_Type = 13 Fail_MODULE_NOT_FOUND Fail_Type = 14 Fail_MODULE_HASH_MISMATCH Fail_Type = 15 Fail_MODULE_ERROR Fail_Type = 16 Fail_FUNCTION_NOT_FOUND Fail_Type = 17 Fail_PROGRAM_ERROR Fail_Type = 18 Fail_INSTANCE_NOT_FOUND Fail_Type = 19 Fail_INSTANCE_ID_INVALID Fail_Type = 20 Fail_INSTANCE_ID_EXISTS Fail_Type = 21 Fail_INSTANCE_STATUS Fail_Type = 22 Fail_INSTANCE_NO_CONNECT Fail_Type = 23 Fail_INSTANCE_DEBUG_STATE Fail_Type = 24 )
func (Fail_Type) Descriptor ¶
func (Fail_Type) Descriptor() protoreflect.EnumDescriptor
func (Fail_Type) Number ¶
func (x Fail_Type) Number() protoreflect.EnumNumber
func (Fail_Type) Type ¶
func (Fail_Type) Type() protoreflect.EnumType
type Instance ¶
type Instance struct { Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` // INSTANCE_CREATE, INSTANCE_SNAPSHOT Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` // INSTANCE_RESUME Transient bool `protobuf:"varint,4,opt,name=transient,proto3" json:"transient,omitempty"` // INSTANCE_CREATE_KNOWN, INSTANCE_CREATE_STREAM Suspended bool `protobuf:"varint,5,opt,name=suspended,proto3" json:"suspended,omitempty"` // INSTANCE_CREATE_KNOWN, INSTANCE_CREATE_STREAM Persist bool `protobuf:"varint,6,opt,name=persist,proto3" json:"persist,omitempty"` // INSTANCE_UPDATE Compiled bool `protobuf:"varint,7,opt,name=compiled,proto3" json:"compiled,omitempty"` // INSTANCE_DEBUG Status *server.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` // INSTANCE_STOP TagCount int32 `protobuf:"varint,9,opt,name=tag_count,json=tagCount,proto3" json:"tag_count,omitempty"` // INSTANCE_CREATE_KNOWN, INSTANCE_CREATE_STREAM, INSTANCE_UPDATE // contains filtered or unexported fields }
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
type Module ¶
type Module struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // MODULE_SOURCE_NEW, MODULE_SOURCE_EXIST Compiled bool `protobuf:"varint,3,opt,name=compiled,proto3" json:"compiled,omitempty"` // MODULE_UPLOAD_EXIST, MODULE_SOURCE_EXIST Length int64 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"` // MODULE_DOWNLOAD TagCount int32 `protobuf:"varint,5,opt,name=tag_count,json=tagCount,proto3" json:"tag_count,omitempty"` // MODULE_PIN // contains filtered or unexported fields }
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
const ( Type_UNSPECIFIED Type = 0 Type_FAIL_INTERNAL Type = 1 Type_FAIL_NETWORK Type = 2 Type_FAIL_PROTOCOL Type = 3 Type_FAIL_REQUEST Type = 4 Type_MODULE_LIST Type = 5 Type_MODULE_INFO Type = 6 Type_MODULE_UPLOAD_NEW Type = 7 Type_MODULE_UPLOAD_EXIST Type = 8 Type_MODULE_SOURCE_NEW Type = 9 Type_MODULE_SOURCE_EXIST Type = 10 Type_MODULE_DOWNLOAD Type = 11 Type_MODULE_PIN Type = 12 Type_MODULE_UNPIN Type = 13 Type_INSTANCE_LIST Type = 14 Type_INSTANCE_INFO Type = 15 Type_INSTANCE_CREATE_KNOWN Type = 16 Type_INSTANCE_CREATE_STREAM Type = 17 Type_INSTANCE_STOP Type = 18 Type_INSTANCE_DELETE Type = 19 Type_INSTANCE_CONNECT Type = 20 Type_INSTANCE_DISCONNECT Type = 21 Type_INSTANCE_WAIT Type = 22 Type_INSTANCE_KILL Type = 23 Type_INSTANCE_SUSPEND Type = 24 Type_INSTANCE_RESUME Type = 25 Type_INSTANCE_SNAPSHOT Type = 26 Type_INSTANCE_UPDATE Type = 27 Type_INSTANCE_DEBUG Type = 28 )
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.