role_v1

package
v0.0.0-...-6d0effa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_role_v1_role_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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.

func (UnimplementedRoleGsrvServer) RoleSave

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL