Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthBMServer(e *bm.Engine, server AuthBMServer)
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthBMServer
- type AuthClient
- type AuthServer
- type GetTokenReply
- func (*GetTokenReply) Descriptor() ([]byte, []int)
- func (m *GetTokenReply) Marshal() (dAtA []byte, err error)
- func (m *GetTokenReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetTokenReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetTokenReply) ProtoMessage()
- func (m *GetTokenReply) Reset()
- func (m *GetTokenReply) Size() (n int)
- func (m *GetTokenReply) String() string
- func (m *GetTokenReply) Unmarshal(dAtA []byte) error
- func (m *GetTokenReply) XXX_DiscardUnknown()
- func (m *GetTokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenReply) XXX_Merge(src proto.Message)
- func (m *GetTokenReply) XXX_Size() int
- func (m *GetTokenReply) XXX_Unmarshal(b []byte) error
- type GetTokenReq
- func (*GetTokenReq) Descriptor() ([]byte, []int)
- func (m *GetTokenReq) Marshal() (dAtA []byte, err error)
- func (m *GetTokenReq) MarshalTo(dAtA []byte) (int, error)
- func (m *GetTokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetTokenReq) ProtoMessage()
- func (m *GetTokenReq) Reset()
- func (m *GetTokenReq) Size() (n int)
- func (m *GetTokenReq) String() string
- func (m *GetTokenReq) Unmarshal(dAtA []byte) error
- func (m *GetTokenReq) XXX_DiscardUnknown()
- func (m *GetTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenReq) XXX_Merge(src proto.Message)
- func (m *GetTokenReq) XXX_Size() int
- func (m *GetTokenReq) XXX_Unmarshal(b []byte) error
- type SetTokenReply
- func (*SetTokenReply) Descriptor() ([]byte, []int)
- func (m *SetTokenReply) Marshal() (dAtA []byte, err error)
- func (m *SetTokenReply) MarshalTo(dAtA []byte) (int, error)
- func (m *SetTokenReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetTokenReply) ProtoMessage()
- func (m *SetTokenReply) Reset()
- func (m *SetTokenReply) Size() (n int)
- func (m *SetTokenReply) String() string
- func (m *SetTokenReply) Unmarshal(dAtA []byte) error
- func (m *SetTokenReply) XXX_DiscardUnknown()
- func (m *SetTokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetTokenReply) XXX_Merge(src proto.Message)
- func (m *SetTokenReply) XXX_Size() int
- func (m *SetTokenReply) XXX_Unmarshal(b []byte) error
- type SetTokenReq
- func (*SetTokenReq) Descriptor() ([]byte, []int)
- func (m *SetTokenReq) Marshal() (dAtA []byte, err error)
- func (m *SetTokenReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SetTokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetTokenReq) ProtoMessage()
- func (m *SetTokenReq) Reset()
- func (m *SetTokenReq) Size() (n int)
- func (m *SetTokenReq) String() string
- func (m *SetTokenReq) Unmarshal(dAtA []byte) error
- func (m *SetTokenReq) XXX_DiscardUnknown()
- func (m *SetTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetTokenReq) XXX_Merge(src proto.Message)
- func (m *SetTokenReq) XXX_Size() int
- func (m *SetTokenReq) XXX_Unmarshal(b []byte) error
- type TokenReply
- func (*TokenReply) Descriptor() ([]byte, []int)
- func (m *TokenReply) Marshal() (dAtA []byte, err error)
- func (m *TokenReply) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenReply) ProtoMessage()
- func (m *TokenReply) Reset()
- func (m *TokenReply) Size() (n int)
- func (m *TokenReply) String() string
- func (m *TokenReply) Unmarshal(dAtA []byte) error
- func (m *TokenReply) XXX_DiscardUnknown()
- func (m *TokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenReply) XXX_Merge(src proto.Message)
- func (m *TokenReply) XXX_Size() int
- func (m *TokenReply) XXX_Unmarshal(b []byte) error
- type TokenReq
- func (*TokenReq) Descriptor() ([]byte, []int)
- func (m *TokenReq) Marshal() (dAtA []byte, err error)
- func (m *TokenReq) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenReq) ProtoMessage()
- func (m *TokenReq) Reset()
- func (m *TokenReq) Size() (n int)
- func (m *TokenReq) String() string
- func (m *TokenReq) Unmarshal(dAtA []byte) error
- func (m *TokenReq) XXX_DiscardUnknown()
- func (m *TokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenReq) XXX_Merge(src proto.Message)
- func (m *TokenReq) XXX_Size() int
- func (m *TokenReq) XXX_Unmarshal(b []byte) error
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) GetToken(ctx context.Context, req *GetTokenReq) (*GetTokenReply, error)
- func (*UnimplementedAuthServer) SetToken(ctx context.Context, req *SetTokenReq) (*SetTokenReply, error)
- func (*UnimplementedAuthServer) Token(ctx context.Context, req *TokenReq) (*TokenReply, error)
Constants ¶
View Source
const AppId = "auth.service"
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") )
View Source
var PathAuthGetToken = "/auth.service.Auth/GetToken"
View Source
var PathAuthSetToken = "/auth.service.Auth/SetToken"
View Source
var PathAuthToken = "/auth.service.Auth/Token"
Functions ¶
func RegisterAuthBMServer ¶
func RegisterAuthBMServer(e *bm.Engine, server AuthBMServer)
RegisterAuthBMServer Register the blademaster route
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthBMServer ¶
type AuthBMServer interface { Token(ctx context.Context, req *TokenReq) (resp *TokenReply, err error) SetToken(ctx context.Context, req *SetTokenReq) (resp *SetTokenReply, err error) GetToken(ctx context.Context, req *GetTokenReq) (resp *GetTokenReply, err error) }
AuthBMServer is the server API for Auth service.
var AuthSvc AuthBMServer
type AuthClient ¶
type AuthClient interface { Token(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenReply, error) SetToken(ctx context.Context, in *SetTokenReq, opts ...grpc.CallOption) (*SetTokenReply, error) GetToken(ctx context.Context, in *GetTokenReq, opts ...grpc.CallOption) (*GetTokenReply, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (AuthClient, error)
type AuthServer ¶
type AuthServer interface { Token(context.Context, *TokenReq) (*TokenReply, error) SetToken(context.Context, *SetTokenReq) (*SetTokenReply, error) GetToken(context.Context, *GetTokenReq) (*GetTokenReply, error) }
AuthServer is the server API for Auth service.
type GetTokenReply ¶
type GetTokenReply 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:"-"` }
func (*GetTokenReply) Descriptor ¶
func (*GetTokenReply) Descriptor() ([]byte, []int)
func (*GetTokenReply) Marshal ¶
func (m *GetTokenReply) Marshal() (dAtA []byte, err error)
func (*GetTokenReply) MarshalToSizedBuffer ¶
func (m *GetTokenReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetTokenReply) ProtoMessage ¶
func (*GetTokenReply) ProtoMessage()
func (*GetTokenReply) Reset ¶
func (m *GetTokenReply) Reset()
func (*GetTokenReply) Size ¶
func (m *GetTokenReply) Size() (n int)
func (*GetTokenReply) String ¶
func (m *GetTokenReply) String() string
func (*GetTokenReply) Unmarshal ¶
func (m *GetTokenReply) Unmarshal(dAtA []byte) error
func (*GetTokenReply) XXX_DiscardUnknown ¶
func (m *GetTokenReply) XXX_DiscardUnknown()
func (*GetTokenReply) XXX_Marshal ¶
func (m *GetTokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenReply) XXX_Merge ¶
func (m *GetTokenReply) XXX_Merge(src proto.Message)
func (*GetTokenReply) XXX_Size ¶
func (m *GetTokenReply) XXX_Size() int
func (*GetTokenReply) XXX_Unmarshal ¶
func (m *GetTokenReply) XXX_Unmarshal(b []byte) error
type GetTokenReq ¶
type GetTokenReq struct { Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTokenReq) Descriptor ¶
func (*GetTokenReq) Descriptor() ([]byte, []int)
func (*GetTokenReq) Marshal ¶
func (m *GetTokenReq) Marshal() (dAtA []byte, err error)
func (*GetTokenReq) MarshalToSizedBuffer ¶
func (m *GetTokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetTokenReq) ProtoMessage ¶
func (*GetTokenReq) ProtoMessage()
func (*GetTokenReq) Reset ¶
func (m *GetTokenReq) Reset()
func (*GetTokenReq) Size ¶
func (m *GetTokenReq) Size() (n int)
func (*GetTokenReq) String ¶
func (m *GetTokenReq) String() string
func (*GetTokenReq) Unmarshal ¶
func (m *GetTokenReq) Unmarshal(dAtA []byte) error
func (*GetTokenReq) XXX_DiscardUnknown ¶
func (m *GetTokenReq) XXX_DiscardUnknown()
func (*GetTokenReq) XXX_Marshal ¶
func (m *GetTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenReq) XXX_Merge ¶
func (m *GetTokenReq) XXX_Merge(src proto.Message)
func (*GetTokenReq) XXX_Size ¶
func (m *GetTokenReq) XXX_Size() int
func (*GetTokenReq) XXX_Unmarshal ¶
func (m *GetTokenReq) XXX_Unmarshal(b []byte) error
type SetTokenReply ¶
type SetTokenReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetTokenReply) Descriptor ¶
func (*SetTokenReply) Descriptor() ([]byte, []int)
func (*SetTokenReply) Marshal ¶
func (m *SetTokenReply) Marshal() (dAtA []byte, err error)
func (*SetTokenReply) MarshalToSizedBuffer ¶
func (m *SetTokenReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetTokenReply) ProtoMessage ¶
func (*SetTokenReply) ProtoMessage()
func (*SetTokenReply) Reset ¶
func (m *SetTokenReply) Reset()
func (*SetTokenReply) Size ¶
func (m *SetTokenReply) Size() (n int)
func (*SetTokenReply) String ¶
func (m *SetTokenReply) String() string
func (*SetTokenReply) Unmarshal ¶
func (m *SetTokenReply) Unmarshal(dAtA []byte) error
func (*SetTokenReply) XXX_DiscardUnknown ¶
func (m *SetTokenReply) XXX_DiscardUnknown()
func (*SetTokenReply) XXX_Marshal ¶
func (m *SetTokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetTokenReply) XXX_Merge ¶
func (m *SetTokenReply) XXX_Merge(src proto.Message)
func (*SetTokenReply) XXX_Size ¶
func (m *SetTokenReply) XXX_Size() int
func (*SetTokenReply) XXX_Unmarshal ¶
func (m *SetTokenReply) XXX_Unmarshal(b []byte) error
type SetTokenReq ¶
type SetTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetTokenReq) Descriptor ¶
func (*SetTokenReq) Descriptor() ([]byte, []int)
func (*SetTokenReq) Marshal ¶
func (m *SetTokenReq) Marshal() (dAtA []byte, err error)
func (*SetTokenReq) MarshalToSizedBuffer ¶
func (m *SetTokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetTokenReq) ProtoMessage ¶
func (*SetTokenReq) ProtoMessage()
func (*SetTokenReq) Reset ¶
func (m *SetTokenReq) Reset()
func (*SetTokenReq) Size ¶
func (m *SetTokenReq) Size() (n int)
func (*SetTokenReq) String ¶
func (m *SetTokenReq) String() string
func (*SetTokenReq) Unmarshal ¶
func (m *SetTokenReq) Unmarshal(dAtA []byte) error
func (*SetTokenReq) XXX_DiscardUnknown ¶
func (m *SetTokenReq) XXX_DiscardUnknown()
func (*SetTokenReq) XXX_Marshal ¶
func (m *SetTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetTokenReq) XXX_Merge ¶
func (m *SetTokenReq) XXX_Merge(src proto.Message)
func (*SetTokenReq) XXX_Size ¶
func (m *SetTokenReq) XXX_Size() int
func (*SetTokenReq) XXX_Unmarshal ¶
func (m *SetTokenReq) XXX_Unmarshal(b []byte) error
type TokenReply ¶
type TokenReply struct { Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenReply) Descriptor ¶
func (*TokenReply) Descriptor() ([]byte, []int)
func (*TokenReply) Marshal ¶
func (m *TokenReply) Marshal() (dAtA []byte, err error)
func (*TokenReply) MarshalToSizedBuffer ¶
func (m *TokenReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenReply) ProtoMessage ¶
func (*TokenReply) ProtoMessage()
func (*TokenReply) Reset ¶
func (m *TokenReply) Reset()
func (*TokenReply) Size ¶
func (m *TokenReply) Size() (n int)
func (*TokenReply) String ¶
func (m *TokenReply) String() string
func (*TokenReply) Unmarshal ¶
func (m *TokenReply) Unmarshal(dAtA []byte) error
func (*TokenReply) XXX_DiscardUnknown ¶
func (m *TokenReply) XXX_DiscardUnknown()
func (*TokenReply) XXX_Marshal ¶
func (m *TokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenReply) XXX_Merge ¶
func (m *TokenReply) XXX_Merge(src proto.Message)
func (*TokenReply) XXX_Size ¶
func (m *TokenReply) XXX_Size() int
func (*TokenReply) XXX_Unmarshal ¶
func (m *TokenReply) XXX_Unmarshal(b []byte) error
type TokenReq ¶
type TokenReq 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:"-"` }
func (*TokenReq) Descriptor ¶
func (*TokenReq) MarshalToSizedBuffer ¶
func (*TokenReq) ProtoMessage ¶
func (*TokenReq) ProtoMessage()
func (*TokenReq) XXX_DiscardUnknown ¶
func (m *TokenReq) XXX_DiscardUnknown()
func (*TokenReq) XXX_Marshal ¶
func (*TokenReq) XXX_Unmarshal ¶
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) GetToken ¶
func (*UnimplementedAuthServer) GetToken(ctx context.Context, req *GetTokenReq) (*GetTokenReply, error)
func (*UnimplementedAuthServer) SetToken ¶
func (*UnimplementedAuthServer) SetToken(ctx context.Context, req *SetTokenReq) (*SetTokenReply, error)
func (*UnimplementedAuthServer) Token ¶
func (*UnimplementedAuthServer) Token(ctx context.Context, req *TokenReq) (*TokenReply, error)
Click to show internal directories.
Click to hide internal directories.