Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterIdentifyGameServer(s *grpc.Server, srv IdentifyGameServer)
- type Cookie
- func (*Cookie) Descriptor() ([]byte, []int)
- func (m *Cookie) GetExpires() int64
- func (m *Cookie) GetHttpOnly() int64
- func (m *Cookie) GetName() string
- func (m *Cookie) GetValue() string
- func (m *Cookie) Marshal() (dAtA []byte, err error)
- func (m *Cookie) MarshalTo(dAtA []byte) (int, error)
- func (*Cookie) ProtoMessage()
- func (m *Cookie) Reset()
- func (m *Cookie) Size() (n int)
- func (m *Cookie) String() string
- func (m *Cookie) Unmarshal(dAtA []byte) error
- func (m *Cookie) XXX_DiscardUnknown()
- func (m *Cookie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Cookie) XXX_Merge(src proto.Message)
- func (m *Cookie) XXX_Size() int
- func (m *Cookie) XXX_Unmarshal(b []byte) error
- type CookieInfo
- func (*CookieInfo) Descriptor() ([]byte, []int)
- func (m *CookieInfo) GetCookies() []*Cookie
- func (m *CookieInfo) GetDomains() []string
- func (m *CookieInfo) Marshal() (dAtA []byte, err error)
- func (m *CookieInfo) MarshalTo(dAtA []byte) (int, error)
- func (*CookieInfo) ProtoMessage()
- func (m *CookieInfo) Reset()
- func (m *CookieInfo) Size() (n int)
- func (m *CookieInfo) String() string
- func (m *CookieInfo) Unmarshal(dAtA []byte) error
- func (m *CookieInfo) XXX_DiscardUnknown()
- func (m *CookieInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CookieInfo) XXX_Merge(src proto.Message)
- func (m *CookieInfo) XXX_Size() int
- func (m *CookieInfo) XXX_Unmarshal(b []byte) error
- type CreateCookieReply
- func (*CreateCookieReply) Descriptor() ([]byte, []int)
- func (m *CreateCookieReply) GetBiliCookies() *CookieInfo
- func (m *CreateCookieReply) GetSSO() []string
- func (m *CreateCookieReply) Marshal() (dAtA []byte, err error)
- func (m *CreateCookieReply) MarshalTo(dAtA []byte) (int, error)
- func (*CreateCookieReply) ProtoMessage()
- func (m *CreateCookieReply) Reset()
- func (m *CreateCookieReply) Size() (n int)
- func (m *CreateCookieReply) String() string
- func (m *CreateCookieReply) Unmarshal(dAtA []byte) error
- func (m *CreateCookieReply) XXX_DiscardUnknown()
- func (m *CreateCookieReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateCookieReply) XXX_Merge(src proto.Message)
- func (m *CreateCookieReply) XXX_Size() int
- func (m *CreateCookieReply) XXX_Unmarshal(b []byte) error
- type CreateCookieReq
- func (*CreateCookieReq) Descriptor() ([]byte, []int)
- func (m *CreateCookieReq) GetFrom() string
- func (m *CreateCookieReq) GetToken() string
- func (m *CreateCookieReq) Marshal() (dAtA []byte, err error)
- func (m *CreateCookieReq) MarshalTo(dAtA []byte) (int, error)
- func (*CreateCookieReq) ProtoMessage()
- func (m *CreateCookieReq) Reset()
- func (m *CreateCookieReq) Size() (n int)
- func (m *CreateCookieReq) String() string
- func (m *CreateCookieReq) Unmarshal(dAtA []byte) error
- func (m *CreateCookieReq) XXX_DiscardUnknown()
- func (m *CreateCookieReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateCookieReq) XXX_Merge(src proto.Message)
- func (m *CreateCookieReq) XXX_Size() int
- func (m *CreateCookieReq) XXX_Unmarshal(b []byte) error
- type DelCacheReply
- func (*DelCacheReply) Descriptor() ([]byte, []int)
- func (m *DelCacheReply) Marshal() (dAtA []byte, err error)
- func (m *DelCacheReply) MarshalTo(dAtA []byte) (int, error)
- func (*DelCacheReply) ProtoMessage()
- func (m *DelCacheReply) Reset()
- func (m *DelCacheReply) Size() (n int)
- func (m *DelCacheReply) String() string
- func (m *DelCacheReply) Unmarshal(dAtA []byte) error
- func (m *DelCacheReply) XXX_DiscardUnknown()
- func (m *DelCacheReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DelCacheReply) XXX_Merge(src proto.Message)
- func (m *DelCacheReply) XXX_Size() int
- func (m *DelCacheReply) XXX_Unmarshal(b []byte) error
- type DelCacheReq
- func (*DelCacheReq) Descriptor() ([]byte, []int)
- func (m *DelCacheReq) GetToken() string
- func (m *DelCacheReq) Marshal() (dAtA []byte, err error)
- func (m *DelCacheReq) MarshalTo(dAtA []byte) (int, error)
- func (*DelCacheReq) ProtoMessage()
- func (m *DelCacheReq) Reset()
- func (m *DelCacheReq) Size() (n int)
- func (m *DelCacheReq) String() string
- func (m *DelCacheReq) Unmarshal(dAtA []byte) error
- func (m *DelCacheReq) XXX_DiscardUnknown()
- func (m *DelCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DelCacheReq) XXX_Merge(src proto.Message)
- func (m *DelCacheReq) XXX_Size() int
- func (m *DelCacheReq) XXX_Unmarshal(b []byte) error
- type IdentifyGameClient
- type IdentifyGameServer
Constants ¶
View Source
const AppID = "identify.service.game"
AppID unique app id for service discovery
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterIdentifyGameServer ¶
func RegisterIdentifyGameServer(s *grpc.Server, srv IdentifyGameServer)
Types ¶
type Cookie ¶
type Cookie struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"name"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"value"` HttpOnly int64 `protobuf:"varint,3,opt,name=HttpOnly,proto3" json:"http_only"` Expires int64 `protobuf:"varint,4,opt,name=Expires,proto3" json:"expires"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cookie) Descriptor ¶
func (*Cookie) GetExpires ¶
func (*Cookie) GetHttpOnly ¶
func (*Cookie) ProtoMessage ¶
func (*Cookie) ProtoMessage()
func (*Cookie) XXX_DiscardUnknown ¶
func (m *Cookie) XXX_DiscardUnknown()
func (*Cookie) XXX_Marshal ¶
func (*Cookie) XXX_Unmarshal ¶
type CookieInfo ¶
type CookieInfo struct { Cookies []*Cookie `protobuf:"bytes,1,rep,name=Cookies" json:"cookies"` Domains []string `protobuf:"bytes,2,rep,name=Domains" json:"domains"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CookieInfo) Descriptor ¶
func (*CookieInfo) Descriptor() ([]byte, []int)
func (*CookieInfo) GetCookies ¶
func (m *CookieInfo) GetCookies() []*Cookie
func (*CookieInfo) GetDomains ¶
func (m *CookieInfo) GetDomains() []string
func (*CookieInfo) Marshal ¶
func (m *CookieInfo) Marshal() (dAtA []byte, err error)
func (*CookieInfo) ProtoMessage ¶
func (*CookieInfo) ProtoMessage()
func (*CookieInfo) Reset ¶
func (m *CookieInfo) Reset()
func (*CookieInfo) Size ¶
func (m *CookieInfo) Size() (n int)
func (*CookieInfo) String ¶
func (m *CookieInfo) String() string
func (*CookieInfo) Unmarshal ¶
func (m *CookieInfo) Unmarshal(dAtA []byte) error
func (*CookieInfo) XXX_DiscardUnknown ¶
func (m *CookieInfo) XXX_DiscardUnknown()
func (*CookieInfo) XXX_Marshal ¶
func (m *CookieInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CookieInfo) XXX_Merge ¶
func (dst *CookieInfo) XXX_Merge(src proto.Message)
func (*CookieInfo) XXX_Size ¶
func (m *CookieInfo) XXX_Size() int
func (*CookieInfo) XXX_Unmarshal ¶
func (m *CookieInfo) XXX_Unmarshal(b []byte) error
type CreateCookieReply ¶
type CreateCookieReply struct { BiliCookies *CookieInfo `protobuf:"bytes,1,opt,name=BiliCookies" json:"cookie_info"` SSO []string `protobuf:"bytes,2,rep,name=SSO" json:"sso"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateCookieReply) Descriptor ¶
func (*CreateCookieReply) Descriptor() ([]byte, []int)
func (*CreateCookieReply) GetBiliCookies ¶
func (m *CreateCookieReply) GetBiliCookies() *CookieInfo
func (*CreateCookieReply) GetSSO ¶
func (m *CreateCookieReply) GetSSO() []string
func (*CreateCookieReply) Marshal ¶
func (m *CreateCookieReply) Marshal() (dAtA []byte, err error)
func (*CreateCookieReply) MarshalTo ¶
func (m *CreateCookieReply) MarshalTo(dAtA []byte) (int, error)
func (*CreateCookieReply) ProtoMessage ¶
func (*CreateCookieReply) ProtoMessage()
func (*CreateCookieReply) Reset ¶
func (m *CreateCookieReply) Reset()
func (*CreateCookieReply) Size ¶
func (m *CreateCookieReply) Size() (n int)
func (*CreateCookieReply) String ¶
func (m *CreateCookieReply) String() string
func (*CreateCookieReply) Unmarshal ¶
func (m *CreateCookieReply) Unmarshal(dAtA []byte) error
func (*CreateCookieReply) XXX_DiscardUnknown ¶
func (m *CreateCookieReply) XXX_DiscardUnknown()
func (*CreateCookieReply) XXX_Marshal ¶
func (m *CreateCookieReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCookieReply) XXX_Merge ¶
func (dst *CreateCookieReply) XXX_Merge(src proto.Message)
func (*CreateCookieReply) XXX_Size ¶
func (m *CreateCookieReply) XXX_Size() int
func (*CreateCookieReply) XXX_Unmarshal ¶
func (m *CreateCookieReply) XXX_Unmarshal(b []byte) error
type CreateCookieReq ¶
type CreateCookieReq struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"token" form:"access_key" validate:"required"` From string `protobuf:"bytes,2,opt,name=From,proto3" json:"from" form:"from"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateCookieReq) Descriptor ¶
func (*CreateCookieReq) Descriptor() ([]byte, []int)
func (*CreateCookieReq) GetFrom ¶
func (m *CreateCookieReq) GetFrom() string
func (*CreateCookieReq) GetToken ¶
func (m *CreateCookieReq) GetToken() string
func (*CreateCookieReq) Marshal ¶
func (m *CreateCookieReq) Marshal() (dAtA []byte, err error)
func (*CreateCookieReq) ProtoMessage ¶
func (*CreateCookieReq) ProtoMessage()
func (*CreateCookieReq) Reset ¶
func (m *CreateCookieReq) Reset()
func (*CreateCookieReq) Size ¶
func (m *CreateCookieReq) Size() (n int)
func (*CreateCookieReq) String ¶
func (m *CreateCookieReq) String() string
func (*CreateCookieReq) Unmarshal ¶
func (m *CreateCookieReq) Unmarshal(dAtA []byte) error
func (*CreateCookieReq) XXX_DiscardUnknown ¶
func (m *CreateCookieReq) XXX_DiscardUnknown()
func (*CreateCookieReq) XXX_Marshal ¶
func (m *CreateCookieReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCookieReq) XXX_Merge ¶
func (dst *CreateCookieReq) XXX_Merge(src proto.Message)
func (*CreateCookieReq) XXX_Size ¶
func (m *CreateCookieReq) XXX_Size() int
func (*CreateCookieReq) XXX_Unmarshal ¶
func (m *CreateCookieReq) XXX_Unmarshal(b []byte) error
type DelCacheReply ¶
type DelCacheReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DelCacheReply del cache reply
func (*DelCacheReply) Descriptor ¶
func (*DelCacheReply) Descriptor() ([]byte, []int)
func (*DelCacheReply) Marshal ¶
func (m *DelCacheReply) Marshal() (dAtA []byte, err error)
func (*DelCacheReply) ProtoMessage ¶
func (*DelCacheReply) ProtoMessage()
func (*DelCacheReply) Reset ¶
func (m *DelCacheReply) Reset()
func (*DelCacheReply) Size ¶
func (m *DelCacheReply) Size() (n int)
func (*DelCacheReply) String ¶
func (m *DelCacheReply) String() string
func (*DelCacheReply) Unmarshal ¶
func (m *DelCacheReply) Unmarshal(dAtA []byte) error
func (*DelCacheReply) XXX_DiscardUnknown ¶
func (m *DelCacheReply) XXX_DiscardUnknown()
func (*DelCacheReply) XXX_Marshal ¶
func (m *DelCacheReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelCacheReply) XXX_Merge ¶
func (dst *DelCacheReply) XXX_Merge(src proto.Message)
func (*DelCacheReply) XXX_Size ¶
func (m *DelCacheReply) XXX_Size() int
func (*DelCacheReply) XXX_Unmarshal ¶
func (m *DelCacheReply) XXX_Unmarshal(b []byte) error
type DelCacheReq ¶
type DelCacheReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DelCacheReq request param for rpc DelCache
func (*DelCacheReq) Descriptor ¶
func (*DelCacheReq) Descriptor() ([]byte, []int)
func (*DelCacheReq) GetToken ¶
func (m *DelCacheReq) GetToken() string
func (*DelCacheReq) Marshal ¶
func (m *DelCacheReq) Marshal() (dAtA []byte, err error)
func (*DelCacheReq) ProtoMessage ¶
func (*DelCacheReq) ProtoMessage()
func (*DelCacheReq) Reset ¶
func (m *DelCacheReq) Reset()
func (*DelCacheReq) Size ¶
func (m *DelCacheReq) Size() (n int)
func (*DelCacheReq) String ¶
func (m *DelCacheReq) String() string
func (*DelCacheReq) Unmarshal ¶
func (m *DelCacheReq) Unmarshal(dAtA []byte) error
func (*DelCacheReq) XXX_DiscardUnknown ¶
func (m *DelCacheReq) XXX_DiscardUnknown()
func (*DelCacheReq) XXX_Marshal ¶
func (m *DelCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelCacheReq) XXX_Merge ¶
func (dst *DelCacheReq) XXX_Merge(src proto.Message)
func (*DelCacheReq) XXX_Size ¶
func (m *DelCacheReq) XXX_Size() int
func (*DelCacheReq) XXX_Unmarshal ¶
func (m *DelCacheReq) XXX_Unmarshal(b []byte) error
type IdentifyGameClient ¶
type IdentifyGameClient interface { // CookieInfo identify info by cookie. DelCache(ctx context.Context, in *DelCacheReq, opts ...grpc.CallOption) (*DelCacheReply, error) GetCookieByToken(ctx context.Context, in *CreateCookieReq, opts ...grpc.CallOption) (*CreateCookieReply, error) }
IdentifyGameClient is the client API for IdentifyGame service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (IdentifyGameClient, error)
NewClient new identify grpc client
func NewIdentifyGameClient ¶
func NewIdentifyGameClient(cc *grpc.ClientConn) IdentifyGameClient
type IdentifyGameServer ¶
type IdentifyGameServer interface { // CookieInfo identify info by cookie. DelCache(context.Context, *DelCacheReq) (*DelCacheReply, error) GetCookieByToken(context.Context, *CreateCookieReq) (*CreateCookieReply, error) }
IdentifyGameServer is the server API for IdentifyGame service.
Click to show internal directories.
Click to hide internal directories.