Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_role_v1_role_proto protoreflect.FileDescriptor
var RoleGsrv_ServiceDesc = grpc.ServiceDesc{ ServiceName: "role.v1.RoleGsrv", HandlerType: (*RoleGsrvServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RoleSave", Handler: _RoleGsrv_RoleSave_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "role/v1/role.proto", }
RoleGsrv_ServiceDesc is the grpc.ServiceDesc for RoleGsrv service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRoleGsrvServer ¶
func RegisterRoleGsrvServer(s grpc.ServiceRegistrar, srv RoleGsrvServer)
Types ¶
type Role ¶
type Role struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleGsrvClient ¶
type RoleGsrvClient interface {
RoleSave(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error)
}
RoleGsrvClient is the client API for RoleGsrv 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 NewRoleGsrvClient ¶
func NewRoleGsrvClient(cc grpc.ClientConnInterface) RoleGsrvClient
type RoleGsrvServer ¶
type RoleGsrvServer interface { RoleSave(context.Context, *anypb.Any) (*anypb.Any, error) // contains filtered or unexported methods }
RoleGsrvServer is the server API for RoleGsrv service. All implementations must embed UnimplementedRoleGsrvServer for forward compatibility
type UnimplementedRoleGsrvServer ¶
type UnimplementedRoleGsrvServer struct { }
UnimplementedRoleGsrvServer must be embedded to have forward compatible implementations.
type UnsafeRoleGsrvServer ¶
type UnsafeRoleGsrvServer interface {
// contains filtered or unexported methods
}
UnsafeRoleGsrvServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleGsrvServer will result in compilation errors.