pb

package
v0.0.0-...-9ccd474 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0:  "FAIL_INTERNAL",
		1:  "FAIL_NETWORK",
		2:  "FAIL_PROTOCOL",
		3:  "FAIL_REQUEST",
		4:  "IFACE_ACCESS",
		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{
		"FAIL_INTERNAL":          0,
		"FAIL_NETWORK":           1,
		"FAIL_PROTOCOL":          2,
		"FAIL_REQUEST":           3,
		"IFACE_ACCESS":           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_server_event_pb_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"`
	Meta *pb.Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// Types that are assignable to Info:
	//	*Event_Fail
	//	*Event_Module
	//	*Event_Instance
	Info isEvent_Info `protobuf_oneof:"info"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetFail

func (x *Event) GetFail() *Fail

func (*Event) GetInfo

func (m *Event) GetInfo() isEvent_Info

func (*Event) GetInstance

func (x *Event) GetInstance() *Instance

func (*Event) GetMeta

func (x *Event) GetMeta() *pb.Meta

func (*Event) GetModule

func (x *Event) GetModule() *Module

func (*Event) GetType

func (x *Event) GetType() Type

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 Event_Fail

type Event_Fail struct {
	Fail *Fail `protobuf:"bytes,3,opt,name=fail,proto3,oneof"`
}

type Event_Instance

type Event_Instance struct {
	Instance *Instance `protobuf:"bytes,5,opt,name=instance,proto3,oneof"`
}

type Event_Module

type Event_Module struct {
	Module *Module `protobuf:"bytes,4,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) Descriptor deprecated

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

Deprecated: Use Fail.ProtoReflect.Descriptor instead.

func (*Fail) GetFunction

func (x *Fail) GetFunction() string

func (*Fail) GetInstance

func (x *Fail) GetInstance() string

func (*Fail) GetModule

func (x *Fail) GetModule() string

func (*Fail) GetSource

func (x *Fail) GetSource() string

func (*Fail) GetSubsystem

func (x *Fail) GetSubsystem() string

func (*Fail) GetType

func (x *Fail) GetType() Fail_Type

func (*Fail) ProtoMessage

func (*Fail) ProtoMessage()

func (*Fail) ProtoReflect

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

func (*Fail) Reset

func (x *Fail) Reset()

func (*Fail) String

func (x *Fail) String() string

type Fail_Type

type Fail_Type int32
const (
	Fail_INTERNAL Fail_Type = 0
	// FAIL_REQUEST (add new values also to 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) Enum

func (x Fail_Type) Enum() *Fail_Type

func (Fail_Type) EnumDescriptor deprecated

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

Deprecated: Use Fail_Type.Descriptor instead.

func (Fail_Type) Number

func (x Fail_Type) Number() protoreflect.EnumNumber

func (Fail_Type) String

func (x Fail_Type) String() string

func (Fail_Type) Type

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    *pb.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) Descriptor deprecated

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

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetCompiled

func (x *Instance) GetCompiled() bool

func (*Instance) GetFunction

func (x *Instance) GetFunction() string

func (*Instance) GetInstance

func (x *Instance) GetInstance() string

func (*Instance) GetModule

func (x *Instance) GetModule() string

func (*Instance) GetPersist

func (x *Instance) GetPersist() bool

func (*Instance) GetStatus

func (x *Instance) GetStatus() *pb.Status

func (*Instance) GetSuspended

func (x *Instance) GetSuspended() bool

func (*Instance) GetTagCount

func (x *Instance) GetTagCount() int32

func (*Instance) GetTransient

func (x *Instance) GetTransient() bool

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

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

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

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) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetCompiled

func (x *Module) GetCompiled() bool

func (*Module) GetLength

func (x *Module) GetLength() int64

func (*Module) GetModule

func (x *Module) GetModule() string

func (*Module) GetSource

func (x *Module) GetSource() string

func (*Module) GetTagCount

func (x *Module) GetTagCount() int32

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

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

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type Type

type Type int32
const (
	Type_FAIL_INTERNAL          Type = 0
	Type_FAIL_NETWORK           Type = 1
	Type_FAIL_PROTOCOL          Type = 2
	Type_FAIL_REQUEST           Type = 3
	Type_IFACE_ACCESS           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) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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