Documentation ¶
Index ¶
- Variables
- func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)
- type AllowReq
- func (*AllowReq) Descriptor() ([]byte, []int)deprecated
- func (x *AllowReq) GetAction() string
- func (x *AllowReq) GetObject() string
- func (x *AllowReq) GetObjectId() string
- func (x *AllowReq) GetUserId() string
- func (*AllowReq) ProtoMessage()
- func (x *AllowReq) ProtoReflect() protoreflect.Message
- func (x *AllowReq) Reset()
- func (x *AllowReq) String() string
- type AllowResp
- type AuthorizationClient
- type AuthorizationServer
- type UnimplementedAuthorizationServer
- type UnsafeAuthorizationServer
Constants ¶
This section is empty.
Variables ¶
var Authorization_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authorization.authorization", HandlerType: (*AuthorizationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "allow", Handler: _Authorization_Allow_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authorization.proto", }
Authorization_ServiceDesc is the grpc.ServiceDesc for Authorization service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthorizationServer ¶
func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)
Types ¶
type AllowReq ¶
type AllowReq struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId,omitempty"` Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*AllowReq) Descriptor
deprecated
func (*AllowReq) GetObjectId ¶
func (*AllowReq) ProtoMessage ¶
func (*AllowReq) ProtoMessage()
func (*AllowReq) ProtoReflect ¶
func (x *AllowReq) ProtoReflect() protoreflect.Message
type AllowResp ¶
type AllowResp struct { Allow bool `protobuf:"varint,1,opt,name=allow,proto3" json:"allow,omitempty"` // contains filtered or unexported fields }
func (*AllowResp) Descriptor
deprecated
func (*AllowResp) ProtoMessage ¶
func (*AllowResp) ProtoMessage()
func (*AllowResp) ProtoReflect ¶
func (x *AllowResp) ProtoReflect() protoreflect.Message
type AuthorizationClient ¶
type AuthorizationClient interface {
Allow(ctx context.Context, in *AllowReq, opts ...grpc.CallOption) (*AllowResp, error)
}
AuthorizationClient is the client API for Authorization 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 NewAuthorizationClient ¶
func NewAuthorizationClient(cc grpc.ClientConnInterface) AuthorizationClient
type AuthorizationServer ¶
type AuthorizationServer interface { Allow(context.Context, *AllowReq) (*AllowResp, error) // contains filtered or unexported methods }
AuthorizationServer is the server API for Authorization service. All implementations must embed UnimplementedAuthorizationServer for forward compatibility
type UnimplementedAuthorizationServer ¶
type UnimplementedAuthorizationServer struct { }
UnimplementedAuthorizationServer must be embedded to have forward compatible implementations.
type UnsafeAuthorizationServer ¶
type UnsafeAuthorizationServer interface {
// contains filtered or unexported methods
}
UnsafeAuthorizationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationServer will result in compilation errors.