v1

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1 is a generated blademaster stub package. This code was generated with go-common/app/tool/bmgen/protoc-gen-bm v0.1.

package 命名使用 {discovery_id}.{version} 的方式, version 形如 v1, v2, v1beta .. NOTE: 不知道的 discovery_id 请询问大佬, 新项目找大佬申请 discovery_id,先到先得抢注 e.g. account.service.v1

It is generated from these files:

api.proto

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)
View Source
var PathZeusMatch = "/live.zeus.v1.Zeus/Match"

Functions

func RegisterZeusBMServer

func RegisterZeusBMServer(e *bm.Engine, server ZeusBMServer)

RegisterZeusBMServer Register the blademaster route

func RegisterZeusServer

func RegisterZeusServer(s *grpc.Server, srv ZeusServer)

Types

type MatchRequest

type MatchRequest struct {
	Group                string   `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
	Platform             string   `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version"`
	Build                uint64   `protobuf:"varint,4,opt,name=build,proto3" json:"build"`
	Buvid                string   `protobuf:"bytes,5,opt,name=buvid,proto3" json:"buvid"`
	Uid                  uint64   `protobuf:"varint,6,opt,name=uid,proto3" json:"uid"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MatchRequest) Descriptor

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

func (*MatchRequest) GetBuild

func (m *MatchRequest) GetBuild() uint64

func (*MatchRequest) GetBuvid

func (m *MatchRequest) GetBuvid() string

func (*MatchRequest) GetGroup

func (m *MatchRequest) GetGroup() string

func (*MatchRequest) GetPlatform

func (m *MatchRequest) GetPlatform() string

func (*MatchRequest) GetUid

func (m *MatchRequest) GetUid() uint64

func (*MatchRequest) GetVersion

func (m *MatchRequest) GetVersion() string

func (*MatchRequest) Marshal

func (m *MatchRequest) Marshal() (dAtA []byte, err error)

func (*MatchRequest) MarshalTo

func (m *MatchRequest) MarshalTo(dAtA []byte) (int, error)

func (*MatchRequest) ProtoMessage

func (*MatchRequest) ProtoMessage()

func (*MatchRequest) Reset

func (m *MatchRequest) Reset()

func (*MatchRequest) Size

func (m *MatchRequest) Size() (n int)

func (*MatchRequest) String

func (m *MatchRequest) String() string

func (*MatchRequest) Unmarshal

func (m *MatchRequest) Unmarshal(dAtA []byte) error

func (*MatchRequest) XXX_DiscardUnknown

func (m *MatchRequest) XXX_DiscardUnknown()

func (*MatchRequest) XXX_Marshal

func (m *MatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchRequest) XXX_Merge

func (dst *MatchRequest) XXX_Merge(src proto.Message)

func (*MatchRequest) XXX_Size

func (m *MatchRequest) XXX_Size() int

func (*MatchRequest) XXX_Unmarshal

func (m *MatchRequest) XXX_Unmarshal(b []byte) error

type MatchResponse

type MatchResponse struct {
	IsMatch              bool     `protobuf:"varint,1,opt,name=is_match,json=isMatch,proto3" json:"is_match"`
	Extend               string   `protobuf:"bytes,2,opt,name=extend,proto3" json:"extend"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MatchResponse) Descriptor

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

func (*MatchResponse) GetExtend

func (m *MatchResponse) GetExtend() string

func (*MatchResponse) GetIsMatch

func (m *MatchResponse) GetIsMatch() bool

func (*MatchResponse) Marshal

func (m *MatchResponse) Marshal() (dAtA []byte, err error)

func (*MatchResponse) MarshalTo

func (m *MatchResponse) MarshalTo(dAtA []byte) (int, error)

func (*MatchResponse) ProtoMessage

func (*MatchResponse) ProtoMessage()

func (*MatchResponse) Reset

func (m *MatchResponse) Reset()

func (*MatchResponse) Size

func (m *MatchResponse) Size() (n int)

func (*MatchResponse) String

func (m *MatchResponse) String() string

func (*MatchResponse) Unmarshal

func (m *MatchResponse) Unmarshal(dAtA []byte) error

func (*MatchResponse) XXX_DiscardUnknown

func (m *MatchResponse) XXX_DiscardUnknown()

func (*MatchResponse) XXX_Marshal

func (m *MatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchResponse) XXX_Merge

func (dst *MatchResponse) XXX_Merge(src proto.Message)

func (*MatchResponse) XXX_Size

func (m *MatchResponse) XXX_Size() int

func (*MatchResponse) XXX_Unmarshal

func (m *MatchResponse) XXX_Unmarshal(b []byte) error

type ZeusBMServer

type ZeusBMServer interface {
	// `method:"POST"`
	Match(ctx context.Context, req *MatchRequest) (resp *MatchResponse, err error)
}

type ZeusClient

type ZeusClient interface {
	// `method:"POST"`
	Match(ctx context.Context, in *MatchRequest, opts ...grpc.CallOption) (*MatchResponse, error)
}

ZeusClient is the client API for Zeus service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewZeusClient

func NewZeusClient(cc *grpc.ClientConn) ZeusClient

type ZeusServer

type ZeusServer interface {
	// `method:"POST"`
	Match(context.Context, *MatchRequest) (*MatchResponse, error)
}

ZeusServer is the server API for Zeus service.

Jump to

Keyboard shortcuts

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