groupsService

package
v0.0.0-...-9b6346a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_group_proto protoreflect.FileDescriptor
View Source
var GroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "groupsService.GroupService",
	HandlerType: (*GroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _GroupService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _GroupService_Update_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _GroupService_Get_Handler,
		},
		{
			MethodName: "Find",
			Handler:    _GroupService_Find_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _GroupService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "group.proto",
}

GroupService_ServiceDesc is the grpc.ServiceDesc for GroupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGroupServiceServer

func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)

Types

type CreateReq

type CreateReq struct {
	Name      string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	RootAdmin bool   `protobuf:"varint,2,opt,name=RootAdmin,proto3" json:"RootAdmin,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateReq) Descriptor deprecated

func (*CreateReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.

func (*CreateReq) GetName

func (x *CreateReq) GetName() string

func (*CreateReq) GetRootAdmin

func (x *CreateReq) GetRootAdmin() bool

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) ProtoReflect

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

func (*CreateReq) Reset

func (x *CreateReq) Reset()

func (*CreateReq) String

func (x *CreateReq) String() string

type CreateRes

type CreateRes struct {
	Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRes) Descriptor deprecated

func (*CreateRes) Descriptor() ([]byte, []int)

Deprecated: Use CreateRes.ProtoReflect.Descriptor instead.

func (*CreateRes) GetGroup

func (x *CreateRes) GetGroup() *Group

func (*CreateRes) ProtoMessage

func (*CreateRes) ProtoMessage()

func (*CreateRes) ProtoReflect

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

func (*CreateRes) Reset

func (x *CreateRes) Reset()

func (*CreateRes) String

func (x *CreateRes) String() string

type DeleteReq

type DeleteReq struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteReq) Descriptor deprecated

func (*DeleteReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteReq.ProtoReflect.Descriptor instead.

func (*DeleteReq) GetId

func (x *DeleteReq) GetId() string

func (*DeleteReq) ProtoMessage

func (*DeleteReq) ProtoMessage()

func (*DeleteReq) ProtoReflect

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

func (*DeleteReq) Reset

func (x *DeleteReq) Reset()

func (*DeleteReq) String

func (x *DeleteReq) String() string

type DeleteRes

type DeleteRes struct {
	Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRes) Descriptor deprecated

func (*DeleteRes) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRes.ProtoReflect.Descriptor instead.

func (*DeleteRes) GetGroup

func (x *DeleteRes) GetGroup() *Group

func (*DeleteRes) ProtoMessage

func (*DeleteRes) ProtoMessage()

func (*DeleteRes) ProtoReflect

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

func (*DeleteRes) Reset

func (x *DeleteRes) Reset()

func (*DeleteRes) String

func (x *DeleteRes) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type FindReq

type FindReq struct {
	Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"`
	Page  int64  `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"`
	Size  int64  `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
	// contains filtered or unexported fields
}

func (*FindReq) Descriptor deprecated

func (*FindReq) Descriptor() ([]byte, []int)

Deprecated: Use FindReq.ProtoReflect.Descriptor instead.

func (*FindReq) GetGroup

func (x *FindReq) GetGroup() *Group

func (*FindReq) GetPage

func (x *FindReq) GetPage() int64

func (*FindReq) GetSize

func (x *FindReq) GetSize() int64

func (*FindReq) ProtoMessage

func (*FindReq) ProtoMessage()

func (*FindReq) ProtoReflect

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

func (*FindReq) Reset

func (x *FindReq) Reset()

func (*FindReq) String

func (x *FindReq) String() string

type FindRes

type FindRes struct {
	TotalCount int64    `protobuf:"varint,1,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"`
	TotalPages int64    `protobuf:"varint,2,opt,name=TotalPages,proto3" json:"TotalPages,omitempty"`
	Page       int64    `protobuf:"varint,3,opt,name=Page,proto3" json:"Page,omitempty"`
	Size       int64    `protobuf:"varint,4,opt,name=Size,proto3" json:"Size,omitempty"`
	HasMore    bool     `protobuf:"varint,5,opt,name=HasMore,proto3" json:"HasMore,omitempty"`
	Groups     []*Group `protobuf:"bytes,6,rep,name=Groups,proto3" json:"Groups,omitempty"`
	// contains filtered or unexported fields
}

func (*FindRes) Descriptor deprecated

func (*FindRes) Descriptor() ([]byte, []int)

Deprecated: Use FindRes.ProtoReflect.Descriptor instead.

func (*FindRes) GetGroups

func (x *FindRes) GetGroups() []*Group

func (*FindRes) GetHasMore

func (x *FindRes) GetHasMore() bool

func (*FindRes) GetPage

func (x *FindRes) GetPage() int64

func (*FindRes) GetSize

func (x *FindRes) GetSize() int64

func (*FindRes) GetTotalCount

func (x *FindRes) GetTotalCount() int64

func (*FindRes) GetTotalPages

func (x *FindRes) GetTotalPages() int64

func (*FindRes) ProtoMessage

func (*FindRes) ProtoMessage()

func (*FindRes) ProtoReflect

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

func (*FindRes) Reset

func (x *FindRes) Reset()

func (*FindRes) String

func (x *FindRes) String() string

type GetReq

type GetReq struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReq) Descriptor deprecated

func (*GetReq) Descriptor() ([]byte, []int)

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetId

func (x *GetReq) GetId() string

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect

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

func (*GetReq) Reset

func (x *GetReq) Reset()

func (*GetReq) String

func (x *GetReq) String() string

type GetRes

type GetRes struct {
	Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRes) Descriptor deprecated

func (*GetRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRes.ProtoReflect.Descriptor instead.

func (*GetRes) GetGroup

func (x *GetRes) GetGroup() *Group

func (*GetRes) ProtoMessage

func (*GetRes) ProtoMessage()

func (*GetRes) ProtoReflect

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

func (*GetRes) Reset

func (x *GetRes) Reset()

func (*GetRes) String

func (x *GetRes) String() string

type Group

type Group 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"`
	RootAdmin    bool                   `protobuf:"varint,3,opt,name=RootAdmin,proto3" json:"RootAdmin,omitempty"`
	LastModified *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=LastModified,proto3" json:"LastModified,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	DeletedAt    *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

func (*Group) Descriptor() ([]byte, []int)

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetCreatedAt

func (x *Group) GetCreatedAt() *timestamppb.Timestamp

func (*Group) GetDeletedAt

func (x *Group) GetDeletedAt() *timestamppb.Timestamp

func (*Group) GetId

func (x *Group) GetId() string

func (*Group) GetLastModified

func (x *Group) GetLastModified() *timestamppb.Timestamp

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetRootAdmin

func (x *Group) GetRootAdmin() bool

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type GroupServiceClient

type GroupServiceClient interface {
	Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRes, error)
	Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateRes, error)
	Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetRes, error)
	Find(ctx context.Context, in *FindReq, opts ...grpc.CallOption) (*FindRes, error)
	Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRes, error)
}

GroupServiceClient is the client API for GroupService 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.

type GroupServiceServer

type GroupServiceServer interface {
	Create(context.Context, *CreateReq) (*CreateRes, error)
	Update(context.Context, *UpdateReq) (*UpdateRes, error)
	Get(context.Context, *GetReq) (*GetRes, error)
	Find(context.Context, *FindReq) (*FindRes, error)
	Delete(context.Context, *DeleteReq) (*DeleteRes, error)
}

GroupServiceServer is the server API for GroupService service. All implementations should embed UnimplementedGroupServiceServer for forward compatibility

type UnimplementedGroupServiceServer

type UnimplementedGroupServiceServer struct {
}

UnimplementedGroupServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedGroupServiceServer) Create

func (UnimplementedGroupServiceServer) Delete

func (UnimplementedGroupServiceServer) Find

func (UnimplementedGroupServiceServer) Get

func (UnimplementedGroupServiceServer) Update

type UnsafeGroupServiceServer

type UnsafeGroupServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGroupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupServiceServer will result in compilation errors.

type UpdateReq

type UpdateReq 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 (*UpdateReq) Descriptor deprecated

func (*UpdateReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.

func (*UpdateReq) GetId

func (x *UpdateReq) GetId() string

func (*UpdateReq) GetName

func (x *UpdateReq) GetName() string

func (*UpdateReq) ProtoMessage

func (*UpdateReq) ProtoMessage()

func (*UpdateReq) ProtoReflect

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

func (*UpdateReq) Reset

func (x *UpdateReq) Reset()

func (*UpdateReq) String

func (x *UpdateReq) String() string

type UpdateRes

type UpdateRes struct {
	Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRes) Descriptor deprecated

func (*UpdateRes) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRes.ProtoReflect.Descriptor instead.

func (*UpdateRes) GetGroup

func (x *UpdateRes) GetGroup() *Group

func (*UpdateRes) ProtoMessage

func (*UpdateRes) ProtoMessage()

func (*UpdateRes) ProtoReflect

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

func (*UpdateRes) Reset

func (x *UpdateRes) Reset()

func (*UpdateRes) String

func (x *UpdateRes) String() string

Jump to

Keyboard shortcuts

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