Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Authorizer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authorizer.Authorizer", HandlerType: (*AuthorizerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AuthorizeByToken", Handler: _Authorizer_AuthorizeByToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authorizer.proto", }
Authorizer_ServiceDesc is the grpc.ServiceDesc for Authorizer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthorizerServer ¶
func RegisterAuthorizerServer(s grpc.ServiceRegistrar, srv AuthorizerServer)
Types ¶
type AuthorizeResponse ¶
type AuthorizeResponse struct { Res bool `protobuf:"varint,1,opt,name=res,proto3" json:"res,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeResponse) Descriptor
deprecated
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeResponse) GetRes ¶
func (x *AuthorizeResponse) GetRes() bool
func (*AuthorizeResponse) ProtoMessage ¶
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) ProtoReflect ¶
func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeResponse) Reset ¶
func (x *AuthorizeResponse) Reset()
func (*AuthorizeResponse) String ¶
func (x *AuthorizeResponse) String() string
type AuthorizeToken ¶
type AuthorizeToken struct {
// contains filtered or unexported fields
}
func (*AuthorizeToken) Descriptor
deprecated
func (*AuthorizeToken) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeToken.ProtoReflect.Descriptor instead.
func (*AuthorizeToken) ProtoMessage ¶
func (*AuthorizeToken) ProtoMessage()
func (*AuthorizeToken) ProtoReflect ¶
func (x *AuthorizeToken) ProtoReflect() protoreflect.Message
func (*AuthorizeToken) Reset ¶
func (x *AuthorizeToken) Reset()
func (*AuthorizeToken) String ¶
func (x *AuthorizeToken) String() string
type AuthorizerClient ¶
type AuthorizerClient interface {
AuthorizeByToken(ctx context.Context, in *AuthorizeToken, opts ...grpc.CallOption) (*AuthorizeResponse, error)
}
AuthorizerClient is the client API for Authorizer 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.
func NewAuthorizerClient ¶
func NewAuthorizerClient(cc grpc.ClientConnInterface) AuthorizerClient
type AuthorizerServer ¶
type AuthorizerServer interface { AuthorizeByToken(context.Context, *AuthorizeToken) (*AuthorizeResponse, error) // contains filtered or unexported methods }
AuthorizerServer is the server API for Authorizer service. All implementations must embed UnimplementedAuthorizerServer for forward compatibility
type UnimplementedAuthorizerServer ¶
type UnimplementedAuthorizerServer struct { }
UnimplementedAuthorizerServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthorizerServer) AuthorizeByToken ¶
func (UnimplementedAuthorizerServer) AuthorizeByToken(context.Context, *AuthorizeToken) (*AuthorizeResponse, error)
type UnsafeAuthorizerServer ¶
type UnsafeAuthorizerServer interface {
// contains filtered or unexported methods
}
UnsafeAuthorizerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizerServer will result in compilation errors.