pb

package
v0.0.0-...-6b3b694 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server_name = map[int32]string{
		0: "CN",
		1: "US",
		2: "JP",
		3: "KR",
	}
	Server_value = map[string]int32{
		"CN": 0,
		"US": 1,
		"JP": 2,
		"KR": 3,
	}
)

Enum value maps for Server.

View Source
var (
	Language_name = map[int32]string{
		0: "ZH_CN",
		1: "EN_US",
		2: "JA_JP",
		3: "KO_KR",
		4: "OTHER",
	}
	Language_value = map[string]int32{
		"ZH_CN": 0,
		"EN_US": 1,
		"JA_JP": 2,
		"KO_KR": 3,
		"OTHER": 4,
	}
)

Enum value maps for Language.

View Source
var (
	MessageType_name = map[int32]string{
		0:    "UNKNOWN",
		1:    "PROBE_NAVIGATED",
		2:    "PROBE_ENTERED_SEARCH_RESULT",
		3:    "PROBE_EXECUTED_ADVANCED_QUERY",
		64:   "PROBE_SERVER_ACK",
		256:  "MATRIX_UPDATE_MESSAGE",
		4096: "MATRIX_UPDATE_SUBSCRIBE_REQ",
		4097: "MATRIX_UPDATE_SUBSCRIBE_RESP",
	}
	MessageType_value = map[string]int32{
		"UNKNOWN":                       0,
		"PROBE_NAVIGATED":               1,
		"PROBE_ENTERED_SEARCH_RESULT":   2,
		"PROBE_EXECUTED_ADVANCED_QUERY": 3,
		"PROBE_SERVER_ACK":              64,
		"MATRIX_UPDATE_MESSAGE":         256,
		"MATRIX_UPDATE_SUBSCRIBE_REQ":   4096,
		"MATRIX_UPDATE_SUBSCRIBE_RESP":  4097,
	}
)

Enum value maps for MessageType.

View Source
var ConnectedLiveService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ConnectedLiveService",
	HandlerType: (*ConnectedLiveServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PushReportBatch",
			Handler:    _ConnectedLiveService_PushReportBatch_Handler,
		},
		{
			MethodName: "PushMatrixBatch",
			Handler:    _ConnectedLiveService_PushMatrixBatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "liveconn.proto",
}

ConnectedLiveService_ServiceDesc is the grpc.ServiceDesc for ConnectedLiveService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_liveconn_proto protoreflect.FileDescriptor
View Source
var File_shared_proto protoreflect.FileDescriptor
View Source
var File_websocket_proto protoreflect.FileDescriptor

Functions

func RegisterConnectedLiveServiceServer

func RegisterConnectedLiveServiceServer(s grpc.ServiceRegistrar, srv ConnectedLiveServiceServer)

Types

type ConnectedLiveServiceClient

type ConnectedLiveServiceClient interface {
	PushReportBatch(ctx context.Context, in *ReportBatchRequest, opts ...grpc.CallOption) (*ReportBatchACK, error)
	PushMatrixBatch(ctx context.Context, in *MatrixBatchRequest, opts ...grpc.CallOption) (*MatrixBatchACK, error)
}

ConnectedLiveServiceClient is the client API for ConnectedLiveService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ConnectedLiveServiceServer

type ConnectedLiveServiceServer interface {
	PushReportBatch(context.Context, *ReportBatchRequest) (*ReportBatchACK, error)
	PushMatrixBatch(context.Context, *MatrixBatchRequest) (*MatrixBatchACK, error)
	// contains filtered or unexported methods
}

ConnectedLiveServiceServer is the server API for ConnectedLiveService service. All implementations must embed UnimplementedConnectedLiveServiceServer for forward compatibility

type Drop

type Drop struct {
	ItemId   uint32 `protobuf:"varint,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Quantity uint64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*Drop) Descriptor deprecated

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

Deprecated: Use Drop.ProtoReflect.Descriptor instead.

func (*Drop) GetItemId

func (x *Drop) GetItemId() uint32

func (*Drop) GetQuantity

func (x *Drop) GetQuantity() uint64

func (*Drop) ProtoMessage

func (*Drop) ProtoMessage()

func (*Drop) ProtoReflect

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

func (*Drop) Reset

func (x *Drop) Reset()

func (*Drop) String

func (x *Drop) String() string
type Header struct {
	Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=MessageType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetType

func (x *Header) GetType() MessageType

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Language

type Language int32
const (
	Language_ZH_CN Language = 0
	Language_EN_US Language = 1
	Language_JA_JP Language = 2
	Language_KO_KR Language = 3
	Language_OTHER Language = 4
)

func (Language) Descriptor

func (Language) Descriptor() protoreflect.EnumDescriptor

func (Language) Enum

func (x Language) Enum() *Language

func (Language) EnumDescriptor deprecated

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

Deprecated: Use Language.Descriptor instead.

func (Language) Number

func (x Language) Number() protoreflect.EnumNumber

func (Language) String

func (x Language) String() string

func (Language) Type

type Matrix

type Matrix struct {
	StageId  uint32 `protobuf:"varint,1,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	ItemId   uint32 `protobuf:"varint,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Quantity uint64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Times    uint64 `protobuf:"varint,4,opt,name=times,proto3" json:"times,omitempty"`
	// contains filtered or unexported fields
}

func (*Matrix) Descriptor deprecated

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

Deprecated: Use Matrix.ProtoReflect.Descriptor instead.

func (*Matrix) GetItemId

func (x *Matrix) GetItemId() uint32

func (*Matrix) GetQuantity

func (x *Matrix) GetQuantity() uint64

func (*Matrix) GetStageId

func (x *Matrix) GetStageId() uint32

func (*Matrix) GetTimes

func (x *Matrix) GetTimes() uint64

func (*Matrix) ProtoMessage

func (*Matrix) ProtoMessage()

func (*Matrix) ProtoReflect

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

func (*Matrix) Reset

func (x *Matrix) Reset()

func (*Matrix) String

func (x *Matrix) String() string

type MatrixBatchACK

type MatrixBatchACK struct {
	Generation uint64 `protobuf:"varint,1,opt,name=generation,proto3" json:"generation,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixBatchACK) Descriptor deprecated

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

Deprecated: Use MatrixBatchACK.ProtoReflect.Descriptor instead.

func (*MatrixBatchACK) GetGeneration

func (x *MatrixBatchACK) GetGeneration() uint64

func (*MatrixBatchACK) ProtoMessage

func (*MatrixBatchACK) ProtoMessage()

func (*MatrixBatchACK) ProtoReflect

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

func (*MatrixBatchACK) Reset

func (x *MatrixBatchACK) Reset()

func (*MatrixBatchACK) String

func (x *MatrixBatchACK) String() string

type MatrixBatchRequest

type MatrixBatchRequest struct {
	Server     Server    `protobuf:"varint,1,opt,name=server,proto3,enum=Server" json:"server,omitempty"`
	Generation uint64    `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"`
	Matrix     []*Matrix `protobuf:"bytes,3,rep,name=matrix,proto3" json:"matrix,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixBatchRequest) Descriptor deprecated

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

Deprecated: Use MatrixBatchRequest.ProtoReflect.Descriptor instead.

func (*MatrixBatchRequest) GetGeneration

func (x *MatrixBatchRequest) GetGeneration() uint64

func (*MatrixBatchRequest) GetMatrix

func (x *MatrixBatchRequest) GetMatrix() []*Matrix

func (*MatrixBatchRequest) GetServer

func (x *MatrixBatchRequest) GetServer() Server

func (*MatrixBatchRequest) ProtoMessage

func (*MatrixBatchRequest) ProtoMessage()

func (*MatrixBatchRequest) ProtoReflect

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

func (*MatrixBatchRequest) Reset

func (x *MatrixBatchRequest) Reset()

func (*MatrixBatchRequest) String

func (x *MatrixBatchRequest) String() string

type MatrixUpdateMessage

type MatrixUpdateMessage struct {
	Header   *Header                        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Segments []*MatrixUpdateMessage_Element `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateMessage) Descriptor deprecated

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

Deprecated: Use MatrixUpdateMessage.ProtoReflect.Descriptor instead.

func (*MatrixUpdateMessage) GetHeader

func (x *MatrixUpdateMessage) GetHeader() *Header

func (*MatrixUpdateMessage) GetSegments

func (*MatrixUpdateMessage) ProtoMessage

func (*MatrixUpdateMessage) ProtoMessage()

func (*MatrixUpdateMessage) ProtoReflect

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

func (*MatrixUpdateMessage) Reset

func (x *MatrixUpdateMessage) Reset()

func (*MatrixUpdateMessage) String

func (x *MatrixUpdateMessage) String() string

type MatrixUpdateMessage_Element

type MatrixUpdateMessage_Element struct {
	Server   Server `protobuf:"varint,1,opt,name=server,proto3,enum=Server" json:"server,omitempty"`
	StageId  uint32 `protobuf:"varint,2,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	ItemId   uint32 `protobuf:"varint,3,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Quantity uint64 `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Times    uint64 `protobuf:"varint,5,opt,name=times,proto3" json:"times,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateMessage_Element) Descriptor deprecated

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

Deprecated: Use MatrixUpdateMessage_Element.ProtoReflect.Descriptor instead.

func (*MatrixUpdateMessage_Element) GetItemId

func (x *MatrixUpdateMessage_Element) GetItemId() uint32

func (*MatrixUpdateMessage_Element) GetQuantity

func (x *MatrixUpdateMessage_Element) GetQuantity() uint64

func (*MatrixUpdateMessage_Element) GetServer

func (x *MatrixUpdateMessage_Element) GetServer() Server

func (*MatrixUpdateMessage_Element) GetStageId

func (x *MatrixUpdateMessage_Element) GetStageId() uint32

func (*MatrixUpdateMessage_Element) GetTimes

func (x *MatrixUpdateMessage_Element) GetTimes() uint64

func (*MatrixUpdateMessage_Element) ProtoMessage

func (*MatrixUpdateMessage_Element) ProtoMessage()

func (*MatrixUpdateMessage_Element) ProtoReflect

func (*MatrixUpdateMessage_Element) Reset

func (x *MatrixUpdateMessage_Element) Reset()

func (*MatrixUpdateMessage_Element) String

func (x *MatrixUpdateMessage_Element) String() string

type MatrixUpdateSubscribeReq

type MatrixUpdateSubscribeReq struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Server Server  `protobuf:"varint,2,opt,name=server,proto3,enum=Server" json:"server,omitempty"`
	// Types that are assignable to Id:
	//	*MatrixUpdateSubscribeReq_StageId
	//	*MatrixUpdateSubscribeReq_ItemId
	Id isMatrixUpdateSubscribeReq_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateSubscribeReq) Descriptor deprecated

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

Deprecated: Use MatrixUpdateSubscribeReq.ProtoReflect.Descriptor instead.

func (*MatrixUpdateSubscribeReq) GetHeader

func (x *MatrixUpdateSubscribeReq) GetHeader() *Header

func (*MatrixUpdateSubscribeReq) GetId

func (m *MatrixUpdateSubscribeReq) GetId() isMatrixUpdateSubscribeReq_Id

func (*MatrixUpdateSubscribeReq) GetItemId

func (x *MatrixUpdateSubscribeReq) GetItemId() uint32

func (*MatrixUpdateSubscribeReq) GetServer

func (x *MatrixUpdateSubscribeReq) GetServer() Server

func (*MatrixUpdateSubscribeReq) GetStageId

func (x *MatrixUpdateSubscribeReq) GetStageId() uint32

func (*MatrixUpdateSubscribeReq) ProtoMessage

func (*MatrixUpdateSubscribeReq) ProtoMessage()

func (*MatrixUpdateSubscribeReq) ProtoReflect

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

func (*MatrixUpdateSubscribeReq) Reset

func (x *MatrixUpdateSubscribeReq) Reset()

func (*MatrixUpdateSubscribeReq) String

func (x *MatrixUpdateSubscribeReq) String() string

type MatrixUpdateSubscribeReq_ItemId

type MatrixUpdateSubscribeReq_ItemId struct {
	ItemId uint32 `protobuf:"varint,4,opt,name=item_id,json=itemId,proto3,oneof"`
}

type MatrixUpdateSubscribeReq_StageId

type MatrixUpdateSubscribeReq_StageId struct {
	StageId uint32 `protobuf:"varint,3,opt,name=stage_id,json=stageId,proto3,oneof"`
}

type MatrixUpdateSubscribeResp

type MatrixUpdateSubscribeResp struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Error  string  `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateSubscribeResp) Descriptor deprecated

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

Deprecated: Use MatrixUpdateSubscribeResp.ProtoReflect.Descriptor instead.

func (*MatrixUpdateSubscribeResp) GetError

func (x *MatrixUpdateSubscribeResp) GetError() string

func (*MatrixUpdateSubscribeResp) GetHeader

func (x *MatrixUpdateSubscribeResp) GetHeader() *Header

func (*MatrixUpdateSubscribeResp) ProtoMessage

func (*MatrixUpdateSubscribeResp) ProtoMessage()

func (*MatrixUpdateSubscribeResp) ProtoReflect

func (*MatrixUpdateSubscribeResp) Reset

func (x *MatrixUpdateSubscribeResp) Reset()

func (*MatrixUpdateSubscribeResp) String

func (x *MatrixUpdateSubscribeResp) String() string

type MessageType

type MessageType int32
const (
	// default value, leave for unknown
	MessageType_UNKNOWN                       MessageType = 0
	MessageType_PROBE_NAVIGATED               MessageType = 1
	MessageType_PROBE_ENTERED_SEARCH_RESULT   MessageType = 2
	MessageType_PROBE_EXECUTED_ADVANCED_QUERY MessageType = 3
	MessageType_PROBE_SERVER_ACK              MessageType = 64
	// server push messages. start from 1 << 8
	/// uses MatrixUpdateMessage
	MessageType_MATRIX_UPDATE_MESSAGE MessageType = 256
	// request-response pattern messages. start from 1 << 12
	/// uses MatrixUpdateSubscribeReq
	MessageType_MATRIX_UPDATE_SUBSCRIBE_REQ MessageType = 4096
	/// uses MatrixUpdateSubscribeResp
	MessageType_MATRIX_UPDATE_SUBSCRIBE_RESP MessageType = 4097
)

func (MessageType) Descriptor

func (MessageType) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor deprecated

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

Deprecated: Use MessageType.Descriptor instead.

func (MessageType) Number

func (x MessageType) Number() protoreflect.EnumNumber

func (MessageType) String

func (x MessageType) String() string

func (MessageType) Type

type Report

type Report struct {
	Server     Server  `protobuf:"varint,1,opt,name=server,proto3,enum=Server" json:"server,omitempty"`
	Generation uint64  `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"`
	StageId    uint32  `protobuf:"varint,3,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	Drops      []*Drop `protobuf:"bytes,4,rep,name=drops,proto3" json:"drops,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetDrops

func (x *Report) GetDrops() []*Drop

func (*Report) GetGeneration

func (x *Report) GetGeneration() uint64

func (*Report) GetServer

func (x *Report) GetServer() Server

func (*Report) GetStageId

func (x *Report) GetStageId() uint32

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type ReportBatchACK

type ReportBatchACK struct {
	// contains filtered or unexported fields
}

func (*ReportBatchACK) Descriptor deprecated

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

Deprecated: Use ReportBatchACK.ProtoReflect.Descriptor instead.

func (*ReportBatchACK) ProtoMessage

func (*ReportBatchACK) ProtoMessage()

func (*ReportBatchACK) ProtoReflect

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

func (*ReportBatchACK) Reset

func (x *ReportBatchACK) Reset()

func (*ReportBatchACK) String

func (x *ReportBatchACK) String() string

type ReportBatchRequest

type ReportBatchRequest struct {
	Reports []*Report `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportBatchRequest) Descriptor deprecated

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

Deprecated: Use ReportBatchRequest.ProtoReflect.Descriptor instead.

func (*ReportBatchRequest) GetReports

func (x *ReportBatchRequest) GetReports() []*Report

func (*ReportBatchRequest) ProtoMessage

func (*ReportBatchRequest) ProtoMessage()

func (*ReportBatchRequest) ProtoReflect

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

func (*ReportBatchRequest) Reset

func (x *ReportBatchRequest) Reset()

func (*ReportBatchRequest) String

func (x *ReportBatchRequest) String() string

type Server

type Server int32
const (
	Server_CN Server = 0
	Server_US Server = 1
	Server_JP Server = 2
	Server_KR Server = 3
)

func (Server) Descriptor

func (Server) Descriptor() protoreflect.EnumDescriptor

func (Server) Enum

func (x Server) Enum() *Server

func (Server) EnumDescriptor deprecated

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

Deprecated: Use Server.Descriptor instead.

func (Server) Number

func (x Server) Number() protoreflect.EnumNumber

func (Server) String

func (x Server) String() string

func (Server) Type

func (Server) Type() protoreflect.EnumType

type Skeleton

type Skeleton struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*Skeleton) Descriptor deprecated

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

Deprecated: Use Skeleton.ProtoReflect.Descriptor instead.

func (*Skeleton) GetHeader

func (x *Skeleton) GetHeader() *Header

func (*Skeleton) ProtoMessage

func (*Skeleton) ProtoMessage()

func (*Skeleton) ProtoReflect

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

func (*Skeleton) Reset

func (x *Skeleton) Reset()

func (*Skeleton) String

func (x *Skeleton) String() string

type UnimplementedConnectedLiveServiceServer

type UnimplementedConnectedLiveServiceServer struct {
}

UnimplementedConnectedLiveServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedConnectedLiveServiceServer) PushMatrixBatch

func (UnimplementedConnectedLiveServiceServer) PushReportBatch

type UnsafeConnectedLiveServiceServer

type UnsafeConnectedLiveServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeConnectedLiveServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConnectedLiveServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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