Documentation ¶
Index ¶
- Variables
- func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
- type CreateRoleReply
- type CreateRoleRequest
- type DeleteRoleReply
- type DeleteRoleRequest
- type GetRoleReply
- type GetRoleRequest
- type ListRoleReply
- type ListRoleRequest
- type RoleClient
- type RoleServer
- type UnimplementedRoleServer
- func (UnimplementedRoleServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
- func (UnimplementedRoleServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
- func (UnimplementedRoleServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
- func (UnimplementedRoleServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
- func (UnimplementedRoleServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
- type UnsafeRoleServer
- type UpdateRoleReply
- type UpdateRoleRequest
Constants ¶
This section is empty.
Variables ¶
var File_api_role_role_proto protoreflect.FileDescriptor
var Role_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.role.Role", HandlerType: (*RoleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _Role_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _Role_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _Role_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _Role_GetRole_Handler, }, { MethodName: "ListRole", Handler: _Role_ListRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/role/role.proto", }
Role_ServiceDesc is the grpc.ServiceDesc for Role service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRoleServer ¶
func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
Types ¶
type CreateRoleReply ¶
type CreateRoleReply struct {
// contains filtered or unexported fields
}
func (*CreateRoleReply) Descriptor
deprecated
func (*CreateRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleReply.ProtoReflect.Descriptor instead.
func (*CreateRoleReply) ProtoMessage ¶
func (*CreateRoleReply) ProtoMessage()
func (*CreateRoleReply) ProtoReflect ¶
func (x *CreateRoleReply) ProtoReflect() protoreflect.Message
func (*CreateRoleReply) Reset ¶
func (x *CreateRoleReply) Reset()
func (*CreateRoleReply) String ¶
func (x *CreateRoleReply) String() string
type CreateRoleRequest ¶
type CreateRoleRequest struct {
// contains filtered or unexported fields
}
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type DeleteRoleReply ¶
type DeleteRoleReply struct {
// contains filtered or unexported fields
}
func (*DeleteRoleReply) Descriptor
deprecated
func (*DeleteRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleReply.ProtoReflect.Descriptor instead.
func (*DeleteRoleReply) ProtoMessage ¶
func (*DeleteRoleReply) ProtoMessage()
func (*DeleteRoleReply) ProtoReflect ¶
func (x *DeleteRoleReply) ProtoReflect() protoreflect.Message
func (*DeleteRoleReply) Reset ¶
func (x *DeleteRoleReply) Reset()
func (*DeleteRoleReply) String ¶
func (x *DeleteRoleReply) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
// contains filtered or unexported fields
}
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
type GetRoleReply ¶
type GetRoleReply struct {
// contains filtered or unexported fields
}
func (*GetRoleReply) Descriptor
deprecated
func (*GetRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleReply.ProtoReflect.Descriptor instead.
func (*GetRoleReply) ProtoMessage ¶
func (*GetRoleReply) ProtoMessage()
func (*GetRoleReply) ProtoReflect ¶
func (x *GetRoleReply) ProtoReflect() protoreflect.Message
func (*GetRoleReply) Reset ¶
func (x *GetRoleReply) Reset()
func (*GetRoleReply) String ¶
func (x *GetRoleReply) String() string
type GetRoleRequest ¶
type GetRoleRequest struct {
// contains filtered or unexported fields
}
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
type ListRoleReply ¶
type ListRoleReply struct {
// contains filtered or unexported fields
}
func (*ListRoleReply) Descriptor
deprecated
func (*ListRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleReply.ProtoReflect.Descriptor instead.
func (*ListRoleReply) ProtoMessage ¶
func (*ListRoleReply) ProtoMessage()
func (*ListRoleReply) ProtoReflect ¶
func (x *ListRoleReply) ProtoReflect() protoreflect.Message
func (*ListRoleReply) Reset ¶
func (x *ListRoleReply) Reset()
func (*ListRoleReply) String ¶
func (x *ListRoleReply) String() string
type ListRoleRequest ¶
type ListRoleRequest struct {
// contains filtered or unexported fields
}
func (*ListRoleRequest) Descriptor
deprecated
func (*ListRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.
func (*ListRoleRequest) ProtoMessage ¶
func (*ListRoleRequest) ProtoMessage()
func (*ListRoleRequest) ProtoReflect ¶
func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
func (*ListRoleRequest) Reset ¶
func (x *ListRoleRequest) Reset()
func (*ListRoleRequest) String ¶
func (x *ListRoleRequest) String() string
type RoleClient ¶
type RoleClient interface { CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleReply, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleReply, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleReply, error) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleReply, error) ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleReply, error) }
RoleClient is the client API for Role 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 NewRoleClient ¶
func NewRoleClient(cc grpc.ClientConnInterface) RoleClient
type RoleServer ¶
type RoleServer interface { CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error) GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error) ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error) // contains filtered or unexported methods }
RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility
type UnimplementedRoleServer ¶
type UnimplementedRoleServer struct { }
UnimplementedRoleServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleServer) CreateRole ¶
func (UnimplementedRoleServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
func (UnimplementedRoleServer) DeleteRole ¶
func (UnimplementedRoleServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
func (UnimplementedRoleServer) GetRole ¶
func (UnimplementedRoleServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
func (UnimplementedRoleServer) ListRole ¶
func (UnimplementedRoleServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
func (UnimplementedRoleServer) UpdateRole ¶
func (UnimplementedRoleServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
type UnsafeRoleServer ¶
type UnsafeRoleServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServer will result in compilation errors.
type UpdateRoleReply ¶
type UpdateRoleReply struct {
// contains filtered or unexported fields
}
func (*UpdateRoleReply) Descriptor
deprecated
func (*UpdateRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleReply.ProtoReflect.Descriptor instead.
func (*UpdateRoleReply) ProtoMessage ¶
func (*UpdateRoleReply) ProtoMessage()
func (*UpdateRoleReply) ProtoReflect ¶
func (x *UpdateRoleReply) ProtoReflect() protoreflect.Message
func (*UpdateRoleReply) Reset ¶
func (x *UpdateRoleReply) Reset()
func (*UpdateRoleReply) String ¶
func (x *UpdateRoleReply) String() string
type UpdateRoleRequest ¶
type UpdateRoleRequest struct {
// contains filtered or unexported fields
}
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string