Documentation ¶
Index ¶
- Variables
- func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)
- type ChangeGroupMemberRequest
- func (*ChangeGroupMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeGroupMemberRequest) GetGid() int64
- func (x *ChangeGroupMemberRequest) GetOwnerUid() int64
- func (x *ChangeGroupMemberRequest) GetUids() []int64
- func (*ChangeGroupMemberRequest) ProtoMessage()
- func (x *ChangeGroupMemberRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeGroupMemberRequest) Reset()
- func (x *ChangeGroupMemberRequest) String() string
- func (m *ChangeGroupMemberRequest) Validate() error
- func (m *ChangeGroupMemberRequest) ValidateAll() error
- type ChangeGroupMemberRequestMultiError
- type ChangeGroupMemberRequestValidationError
- func (e ChangeGroupMemberRequestValidationError) Cause() error
- func (e ChangeGroupMemberRequestValidationError) Error() string
- func (e ChangeGroupMemberRequestValidationError) ErrorName() string
- func (e ChangeGroupMemberRequestValidationError) Field() string
- func (e ChangeGroupMemberRequestValidationError) Key() bool
- func (e ChangeGroupMemberRequestValidationError) Reason() string
- type ChangeGroupMemberResponse
- func (*ChangeGroupMemberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeGroupMemberResponse) GetCount() int32
- func (x *ChangeGroupMemberResponse) GetError() *errors.Error
- func (*ChangeGroupMemberResponse) ProtoMessage()
- func (x *ChangeGroupMemberResponse) ProtoReflect() protoreflect.Message
- func (x *ChangeGroupMemberResponse) Reset()
- func (x *ChangeGroupMemberResponse) String() string
- func (m *ChangeGroupMemberResponse) Validate() error
- func (m *ChangeGroupMemberResponse) ValidateAll() error
- type ChangeGroupMemberResponseMultiError
- type ChangeGroupMemberResponseValidationError
- func (e ChangeGroupMemberResponseValidationError) Cause() error
- func (e ChangeGroupMemberResponseValidationError) Error() string
- func (e ChangeGroupMemberResponseValidationError) ErrorName() string
- func (e ChangeGroupMemberResponseValidationError) Field() string
- func (e ChangeGroupMemberResponseValidationError) Key() bool
- func (e ChangeGroupMemberResponseValidationError) Reason() string
- type CreateGroupRequest
- func (*CreateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupRequest) GetAvatar() string
- func (x *CreateGroupRequest) GetDescription() string
- func (x *CreateGroupRequest) GetMembersUid() []int64
- func (x *CreateGroupRequest) GetName() string
- func (x *CreateGroupRequest) GetOwnerUid() int64
- func (*CreateGroupRequest) ProtoMessage()
- func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGroupRequest) Reset()
- func (x *CreateGroupRequest) String() string
- func (m *CreateGroupRequest) Validate() error
- func (m *CreateGroupRequest) ValidateAll() error
- type CreateGroupRequestMultiError
- type CreateGroupRequestValidationError
- func (e CreateGroupRequestValidationError) Cause() error
- func (e CreateGroupRequestValidationError) Error() string
- func (e CreateGroupRequestValidationError) ErrorName() string
- func (e CreateGroupRequestValidationError) Field() string
- func (e CreateGroupRequestValidationError) Key() bool
- func (e CreateGroupRequestValidationError) Reason() string
- type CreateGroupResponse
- func (*CreateGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupResponse) GetError() *errors.Error
- func (x *CreateGroupResponse) GetGroup() *Group
- func (*CreateGroupResponse) ProtoMessage()
- func (x *CreateGroupResponse) ProtoReflect() protoreflect.Message
- func (x *CreateGroupResponse) Reset()
- func (x *CreateGroupResponse) String() string
- func (m *CreateGroupResponse) Validate() error
- func (m *CreateGroupResponse) ValidateAll() error
- type CreateGroupResponseMultiError
- type CreateGroupResponseValidationError
- func (e CreateGroupResponseValidationError) Cause() error
- func (e CreateGroupResponseValidationError) Error() string
- func (e CreateGroupResponseValidationError) ErrorName() string
- func (e CreateGroupResponseValidationError) Field() string
- func (e CreateGroupResponseValidationError) Key() bool
- func (e CreateGroupResponseValidationError) Reason() string
- type DeleteGroupRequest
- func (*DeleteGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGroupRequest) GetGid() int64
- func (x *DeleteGroupRequest) GetOwnerUid() int64
- func (*DeleteGroupRequest) ProtoMessage()
- func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGroupRequest) Reset()
- func (x *DeleteGroupRequest) String() string
- func (m *DeleteGroupRequest) Validate() error
- func (m *DeleteGroupRequest) ValidateAll() error
- type DeleteGroupRequestMultiError
- type DeleteGroupRequestValidationError
- func (e DeleteGroupRequestValidationError) Cause() error
- func (e DeleteGroupRequestValidationError) Error() string
- func (e DeleteGroupRequestValidationError) ErrorName() string
- func (e DeleteGroupRequestValidationError) Field() string
- func (e DeleteGroupRequestValidationError) Key() bool
- func (e DeleteGroupRequestValidationError) Reason() string
- type GetGroupRequest
- func (*GetGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGroupRequest) GetGid() int64
- func (x *GetGroupRequest) GetOwnerUid() int64
- func (x *GetGroupRequest) GetWithInfo() bool
- func (x *GetGroupRequest) GetWithMembers() bool
- func (*GetGroupRequest) ProtoMessage()
- func (x *GetGroupRequest) ProtoReflect() protoreflect.Message
- func (x *GetGroupRequest) Reset()
- func (x *GetGroupRequest) String() string
- func (m *GetGroupRequest) Validate() error
- func (m *GetGroupRequest) ValidateAll() error
- type GetGroupRequestMultiError
- type GetGroupRequestValidationError
- func (e GetGroupRequestValidationError) Cause() error
- func (e GetGroupRequestValidationError) Error() string
- func (e GetGroupRequestValidationError) ErrorName() string
- func (e GetGroupRequestValidationError) Field() string
- func (e GetGroupRequestValidationError) Key() bool
- func (e GetGroupRequestValidationError) Reason() string
- type GetGroupResponse
- func (*GetGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGroupResponse) GetError() *errors.Error
- func (x *GetGroupResponse) GetGroup() *Group
- func (*GetGroupResponse) ProtoMessage()
- func (x *GetGroupResponse) ProtoReflect() protoreflect.Message
- func (x *GetGroupResponse) Reset()
- func (x *GetGroupResponse) String() string
- func (m *GetGroupResponse) Validate() error
- func (m *GetGroupResponse) ValidateAll() error
- type GetGroupResponseMultiError
- type GetGroupResponseValidationError
- func (e GetGroupResponseValidationError) Cause() error
- func (e GetGroupResponseValidationError) Error() string
- func (e GetGroupResponseValidationError) ErrorName() string
- func (e GetGroupResponseValidationError) Field() string
- func (e GetGroupResponseValidationError) Key() bool
- func (e GetGroupResponseValidationError) Reason() string
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetAvatar() string
- func (x *Group) GetDescription() string
- func (x *Group) GetGid() int64
- func (x *Group) GetMaxMembers() int32
- func (x *Group) GetMemberCount() int32
- func (x *Group) GetMembers() []*GroupMember
- func (x *Group) GetName() string
- func (x *Group) GetOwner() *GroupMember
- func (x *Group) GetOwnerUid() int64
- func (x *Group) GetStatus() GroupStatus
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- func (m *Group) Validate() error
- func (m *Group) ValidateAll() error
- type GroupMember
- func (*GroupMember) Descriptor() ([]byte, []int)deprecated
- func (x *GroupMember) GetGid() int64
- func (x *GroupMember) GetStatus() GroupMember_Status
- func (x *GroupMember) GetType() GroupMember_Type
- func (x *GroupMember) GetUid() int64
- func (x *GroupMember) GetUser() *v1.User
- func (*GroupMember) ProtoMessage()
- func (x *GroupMember) ProtoReflect() protoreflect.Message
- func (x *GroupMember) Reset()
- func (x *GroupMember) String() string
- func (m *GroupMember) Validate() error
- func (m *GroupMember) ValidateAll() error
- type GroupMemberMultiError
- type GroupMemberValidationError
- func (e GroupMemberValidationError) Cause() error
- func (e GroupMemberValidationError) Error() string
- func (e GroupMemberValidationError) ErrorName() string
- func (e GroupMemberValidationError) Field() string
- func (e GroupMemberValidationError) Key() bool
- func (e GroupMemberValidationError) Reason() string
- type GroupMember_Status
- func (GroupMember_Status) Descriptor() protoreflect.EnumDescriptor
- func (x GroupMember_Status) Enum() *GroupMember_Status
- func (GroupMember_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupMember_Status) Number() protoreflect.EnumNumber
- func (x GroupMember_Status) String() string
- func (GroupMember_Status) Type() protoreflect.EnumType
- type GroupMember_Type
- func (GroupMember_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GroupMember_Type) Enum() *GroupMember_Type
- func (GroupMember_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupMember_Type) Number() protoreflect.EnumNumber
- func (x GroupMember_Type) String() string
- func (GroupMember_Type) Type() protoreflect.EnumType
- type GroupMultiError
- type GroupServiceClient
- type GroupServiceServer
- type GroupStatus
- func (GroupStatus) Descriptor() protoreflect.EnumDescriptor
- func (x GroupStatus) Enum() *GroupStatus
- func (GroupStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupStatus) Number() protoreflect.EnumNumber
- func (x GroupStatus) String() string
- func (GroupStatus) Type() protoreflect.EnumType
- type GroupValidationError
- type ListGroupsRequest
- func (*ListGroupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsRequest) GetPage() int32
- func (x *ListGroupsRequest) GetPageSize() int32
- func (x *ListGroupsRequest) GetUid() int64
- func (*ListGroupsRequest) ProtoMessage()
- func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message
- func (x *ListGroupsRequest) Reset()
- func (x *ListGroupsRequest) String() string
- func (m *ListGroupsRequest) Validate() error
- func (m *ListGroupsRequest) ValidateAll() error
- type ListGroupsRequestMultiError
- type ListGroupsRequestValidationError
- func (e ListGroupsRequestValidationError) Cause() error
- func (e ListGroupsRequestValidationError) Error() string
- func (e ListGroupsRequestValidationError) ErrorName() string
- func (e ListGroupsRequestValidationError) Field() string
- func (e ListGroupsRequestValidationError) Key() bool
- func (e ListGroupsRequestValidationError) Reason() string
- type ListGroupsResponse
- func (*ListGroupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsResponse) GetError() *errors.Error
- func (x *ListGroupsResponse) GetGroups() []*Group
- func (*ListGroupsResponse) ProtoMessage()
- func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message
- func (x *ListGroupsResponse) Reset()
- func (x *ListGroupsResponse) String() string
- func (m *ListGroupsResponse) Validate() error
- func (m *ListGroupsResponse) ValidateAll() error
- type ListGroupsResponseMultiError
- type ListGroupsResponseValidationError
- func (e ListGroupsResponseValidationError) Cause() error
- func (e ListGroupsResponseValidationError) Error() string
- func (e ListGroupsResponseValidationError) ErrorName() string
- func (e ListGroupsResponseValidationError) Field() string
- func (e ListGroupsResponseValidationError) Key() bool
- func (e ListGroupsResponseValidationError) Reason() string
- type UnimplementedGroupServiceServer
- func (UnimplementedGroupServiceServer) AddGroupMember(context.Context, *ChangeGroupMemberRequest) (*ChangeGroupMemberResponse, error)
- func (UnimplementedGroupServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error)
- func (UnimplementedGroupServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*errors.Error, error)
- func (UnimplementedGroupServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
- func (UnimplementedGroupServiceServer) ListGroups(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error)
- func (UnimplementedGroupServiceServer) RemoveGroupMember(context.Context, *ChangeGroupMemberRequest) (*ChangeGroupMemberResponse, error)
- func (UnimplementedGroupServiceServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error)
- type UnsafeGroupServiceServer
- type UpdateGroupRequest
- func (*UpdateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGroupRequest) GetAvatar() string
- func (x *UpdateGroupRequest) GetDescription() string
- func (x *UpdateGroupRequest) GetGid() int64
- func (x *UpdateGroupRequest) GetName() string
- func (x *UpdateGroupRequest) GetOwnerUid() int64
- func (*UpdateGroupRequest) ProtoMessage()
- func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGroupRequest) Reset()
- func (x *UpdateGroupRequest) String() string
- func (m *UpdateGroupRequest) Validate() error
- func (m *UpdateGroupRequest) ValidateAll() error
- type UpdateGroupRequestMultiError
- type UpdateGroupRequestValidationError
- func (e UpdateGroupRequestValidationError) Cause() error
- func (e UpdateGroupRequestValidationError) Error() string
- func (e UpdateGroupRequestValidationError) ErrorName() string
- func (e UpdateGroupRequestValidationError) Field() string
- func (e UpdateGroupRequestValidationError) Key() bool
- func (e UpdateGroupRequestValidationError) Reason() string
- type UpdateGroupResponse
- func (*UpdateGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGroupResponse) GetError() *errors.Error
- func (x *UpdateGroupResponse) GetGroup() *Group
- func (*UpdateGroupResponse) ProtoMessage()
- func (x *UpdateGroupResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateGroupResponse) Reset()
- func (x *UpdateGroupResponse) String() string
- func (m *UpdateGroupResponse) Validate() error
- func (m *UpdateGroupResponse) ValidateAll() error
- type UpdateGroupResponseMultiError
- type UpdateGroupResponseValidationError
- func (e UpdateGroupResponseValidationError) Cause() error
- func (e UpdateGroupResponseValidationError) Error() string
- func (e UpdateGroupResponseValidationError) ErrorName() string
- func (e UpdateGroupResponseValidationError) Field() string
- func (e UpdateGroupResponseValidationError) Key() bool
- func (e UpdateGroupResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( GroupStatus_name = map[int32]string{ 0: "Active", 1: "Silent", } GroupStatus_value = map[string]int32{ "Active": 0, "Silent": 1, } )
Enum value maps for GroupStatus.
var ( GroupMember_Status_name = map[int32]string{ 0: "StatusActive", 1: "StatusSilent", } GroupMember_Status_value = map[string]int32{ "StatusActive": 0, "StatusSilent": 1, } )
Enum value maps for GroupMember_Status.
var ( GroupMember_Type_name = map[int32]string{ 0: "TypeOwner", 1: "TypeMember", } GroupMember_Type_value = map[string]int32{ "TypeOwner": 0, "TypeMember": 1, } )
Enum value maps for GroupMember_Type.
var File_user_group_v1_group_proto protoreflect.FileDescriptor
var GroupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.group.v1.GroupService", HandlerType: (*GroupServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetGroup", Handler: _GroupService_GetGroup_Handler, }, { MethodName: "ListGroups", Handler: _GroupService_ListGroups_Handler, }, { MethodName: "CreateGroup", Handler: _GroupService_CreateGroup_Handler, }, { MethodName: "UpdateGroup", Handler: _GroupService_UpdateGroup_Handler, }, { MethodName: "DeleteGroup", Handler: _GroupService_DeleteGroup_Handler, }, { MethodName: "AddGroupMember", Handler: _GroupService_AddGroupMember_Handler, }, { MethodName: "RemoveGroupMember", Handler: _GroupService_RemoveGroupMember_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/group/v1/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 ChangeGroupMemberRequest ¶ added in v0.0.7
type ChangeGroupMemberRequest struct { Gid int64 `protobuf:"varint,1,opt,name=gid,proto3" json:"gid,omitempty"` OwnerUid int64 `protobuf:"varint,2,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"` Uids []int64 `protobuf:"varint,3,rep,packed,name=uids,proto3" json:"uids,omitempty"` // contains filtered or unexported fields }
ChangeGroupMemberRequest add or remove group member
func (*ChangeGroupMemberRequest) Descriptor
deprecated
added in
v0.0.7
func (*ChangeGroupMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeGroupMemberRequest.ProtoReflect.Descriptor instead.
func (*ChangeGroupMemberRequest) GetGid ¶ added in v0.0.7
func (x *ChangeGroupMemberRequest) GetGid() int64
func (*ChangeGroupMemberRequest) GetOwnerUid ¶ added in v0.0.7
func (x *ChangeGroupMemberRequest) GetOwnerUid() int64
func (*ChangeGroupMemberRequest) GetUids ¶ added in v0.0.7
func (x *ChangeGroupMemberRequest) GetUids() []int64
func (*ChangeGroupMemberRequest) ProtoMessage ¶ added in v0.0.7
func (*ChangeGroupMemberRequest) ProtoMessage()
func (*ChangeGroupMemberRequest) ProtoReflect ¶ added in v0.0.7
func (x *ChangeGroupMemberRequest) ProtoReflect() protoreflect.Message
func (*ChangeGroupMemberRequest) Reset ¶ added in v0.0.7
func (x *ChangeGroupMemberRequest) Reset()
func (*ChangeGroupMemberRequest) String ¶ added in v0.0.7
func (x *ChangeGroupMemberRequest) String() string
func (*ChangeGroupMemberRequest) Validate ¶ added in v0.0.7
func (m *ChangeGroupMemberRequest) Validate() error
Validate checks the field values on ChangeGroupMemberRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ChangeGroupMemberRequest) ValidateAll ¶ added in v0.0.7
func (m *ChangeGroupMemberRequest) ValidateAll() error
ValidateAll checks the field values on ChangeGroupMemberRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChangeGroupMemberRequestMultiError, or nil if none found.
type ChangeGroupMemberRequestMultiError ¶ added in v0.0.7
type ChangeGroupMemberRequestMultiError []error
ChangeGroupMemberRequestMultiError is an error wrapping multiple validation errors returned by ChangeGroupMemberRequest.ValidateAll() if the designated constraints aren't met.
func (ChangeGroupMemberRequestMultiError) AllErrors ¶ added in v0.0.7
func (m ChangeGroupMemberRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChangeGroupMemberRequestMultiError) Error ¶ added in v0.0.7
func (m ChangeGroupMemberRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChangeGroupMemberRequestValidationError ¶ added in v0.0.7
type ChangeGroupMemberRequestValidationError struct {
// contains filtered or unexported fields
}
ChangeGroupMemberRequestValidationError is the validation error returned by ChangeGroupMemberRequest.Validate if the designated constraints aren't met.
func (ChangeGroupMemberRequestValidationError) Cause ¶ added in v0.0.7
func (e ChangeGroupMemberRequestValidationError) Cause() error
Cause function returns cause value.
func (ChangeGroupMemberRequestValidationError) Error ¶ added in v0.0.7
func (e ChangeGroupMemberRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ChangeGroupMemberRequestValidationError) ErrorName ¶ added in v0.0.7
func (e ChangeGroupMemberRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ChangeGroupMemberRequestValidationError) Field ¶ added in v0.0.7
func (e ChangeGroupMemberRequestValidationError) Field() string
Field function returns field value.
func (ChangeGroupMemberRequestValidationError) Key ¶ added in v0.0.7
func (e ChangeGroupMemberRequestValidationError) Key() bool
Key function returns key value.
func (ChangeGroupMemberRequestValidationError) Reason ¶ added in v0.0.7
func (e ChangeGroupMemberRequestValidationError) Reason() string
Reason function returns reason value.
type ChangeGroupMemberResponse ¶ added in v0.0.7
type ChangeGroupMemberResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // count of members changed // contains filtered or unexported fields }
func (*ChangeGroupMemberResponse) Descriptor
deprecated
added in
v0.0.7
func (*ChangeGroupMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangeGroupMemberResponse.ProtoReflect.Descriptor instead.
func (*ChangeGroupMemberResponse) GetCount ¶ added in v0.0.7
func (x *ChangeGroupMemberResponse) GetCount() int32
func (*ChangeGroupMemberResponse) GetError ¶ added in v0.0.9
func (x *ChangeGroupMemberResponse) GetError() *errors.Error
func (*ChangeGroupMemberResponse) ProtoMessage ¶ added in v0.0.7
func (*ChangeGroupMemberResponse) ProtoMessage()
func (*ChangeGroupMemberResponse) ProtoReflect ¶ added in v0.0.7
func (x *ChangeGroupMemberResponse) ProtoReflect() protoreflect.Message
func (*ChangeGroupMemberResponse) Reset ¶ added in v0.0.7
func (x *ChangeGroupMemberResponse) Reset()
func (*ChangeGroupMemberResponse) String ¶ added in v0.0.7
func (x *ChangeGroupMemberResponse) String() string
func (*ChangeGroupMemberResponse) Validate ¶ added in v0.0.7
func (m *ChangeGroupMemberResponse) Validate() error
Validate checks the field values on ChangeGroupMemberResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ChangeGroupMemberResponse) ValidateAll ¶ added in v0.0.7
func (m *ChangeGroupMemberResponse) ValidateAll() error
ValidateAll checks the field values on ChangeGroupMemberResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChangeGroupMemberResponseMultiError, or nil if none found.
type ChangeGroupMemberResponseMultiError ¶ added in v0.0.7
type ChangeGroupMemberResponseMultiError []error
ChangeGroupMemberResponseMultiError is an error wrapping multiple validation errors returned by ChangeGroupMemberResponse.ValidateAll() if the designated constraints aren't met.
func (ChangeGroupMemberResponseMultiError) AllErrors ¶ added in v0.0.7
func (m ChangeGroupMemberResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChangeGroupMemberResponseMultiError) Error ¶ added in v0.0.7
func (m ChangeGroupMemberResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChangeGroupMemberResponseValidationError ¶ added in v0.0.7
type ChangeGroupMemberResponseValidationError struct {
// contains filtered or unexported fields
}
ChangeGroupMemberResponseValidationError is the validation error returned by ChangeGroupMemberResponse.Validate if the designated constraints aren't met.
func (ChangeGroupMemberResponseValidationError) Cause ¶ added in v0.0.7
func (e ChangeGroupMemberResponseValidationError) Cause() error
Cause function returns cause value.
func (ChangeGroupMemberResponseValidationError) Error ¶ added in v0.0.7
func (e ChangeGroupMemberResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ChangeGroupMemberResponseValidationError) ErrorName ¶ added in v0.0.7
func (e ChangeGroupMemberResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ChangeGroupMemberResponseValidationError) Field ¶ added in v0.0.7
func (e ChangeGroupMemberResponseValidationError) Field() string
Field function returns field value.
func (ChangeGroupMemberResponseValidationError) Key ¶ added in v0.0.7
func (e ChangeGroupMemberResponseValidationError) Key() bool
Key function returns key value.
func (ChangeGroupMemberResponseValidationError) Reason ¶ added in v0.0.7
func (e ChangeGroupMemberResponseValidationError) Reason() string
Reason function returns reason value.
type CreateGroupRequest ¶ added in v0.0.4
type CreateGroupRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` OwnerUid int64 `protobuf:"varint,4,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"` MembersUid []int64 `protobuf:"varint,5,rep,packed,name=members_uid,json=membersUid,proto3" json:"members_uid,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupRequest) Descriptor
deprecated
added in
v0.0.4
func (*CreateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupRequest) GetAvatar ¶ added in v0.0.4
func (x *CreateGroupRequest) GetAvatar() string
func (*CreateGroupRequest) GetDescription ¶ added in v0.0.4
func (x *CreateGroupRequest) GetDescription() string
func (*CreateGroupRequest) GetMembersUid ¶ added in v0.0.4
func (x *CreateGroupRequest) GetMembersUid() []int64
func (*CreateGroupRequest) GetName ¶ added in v0.0.4
func (x *CreateGroupRequest) GetName() string
func (*CreateGroupRequest) GetOwnerUid ¶ added in v0.0.4
func (x *CreateGroupRequest) GetOwnerUid() int64
func (*CreateGroupRequest) ProtoMessage ¶ added in v0.0.4
func (*CreateGroupRequest) ProtoMessage()
func (*CreateGroupRequest) ProtoReflect ¶ added in v0.0.4
func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateGroupRequest) Reset ¶ added in v0.0.4
func (x *CreateGroupRequest) Reset()
func (*CreateGroupRequest) String ¶ added in v0.0.4
func (x *CreateGroupRequest) String() string
func (*CreateGroupRequest) Validate ¶ added in v0.0.4
func (m *CreateGroupRequest) Validate() error
Validate checks the field values on CreateGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateGroupRequest) ValidateAll ¶ added in v0.0.4
func (m *CreateGroupRequest) ValidateAll() error
ValidateAll checks the field values on CreateGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateGroupRequestMultiError, or nil if none found.
type CreateGroupRequestMultiError ¶ added in v0.0.4
type CreateGroupRequestMultiError []error
CreateGroupRequestMultiError is an error wrapping multiple validation errors returned by CreateGroupRequest.ValidateAll() if the designated constraints aren't met.
func (CreateGroupRequestMultiError) AllErrors ¶ added in v0.0.4
func (m CreateGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateGroupRequestMultiError) Error ¶ added in v0.0.4
func (m CreateGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateGroupRequestValidationError ¶ added in v0.0.4
type CreateGroupRequestValidationError struct {
// contains filtered or unexported fields
}
CreateGroupRequestValidationError is the validation error returned by CreateGroupRequest.Validate if the designated constraints aren't met.
func (CreateGroupRequestValidationError) Cause ¶ added in v0.0.4
func (e CreateGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateGroupRequestValidationError) Error ¶ added in v0.0.4
func (e CreateGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateGroupRequestValidationError) ErrorName ¶ added in v0.0.4
func (e CreateGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateGroupRequestValidationError) Field ¶ added in v0.0.4
func (e CreateGroupRequestValidationError) Field() string
Field function returns field value.
func (CreateGroupRequestValidationError) Key ¶ added in v0.0.4
func (e CreateGroupRequestValidationError) Key() bool
Key function returns key value.
func (CreateGroupRequestValidationError) Reason ¶ added in v0.0.4
func (e CreateGroupRequestValidationError) Reason() string
Reason function returns reason value.
type CreateGroupResponse ¶ added in v0.0.4
type CreateGroupResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupResponse) Descriptor
deprecated
added in
v0.0.4
func (*CreateGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupResponse.ProtoReflect.Descriptor instead.
func (*CreateGroupResponse) GetError ¶ added in v0.0.9
func (x *CreateGroupResponse) GetError() *errors.Error
func (*CreateGroupResponse) GetGroup ¶ added in v0.0.4
func (x *CreateGroupResponse) GetGroup() *Group
func (*CreateGroupResponse) ProtoMessage ¶ added in v0.0.4
func (*CreateGroupResponse) ProtoMessage()
func (*CreateGroupResponse) ProtoReflect ¶ added in v0.0.4
func (x *CreateGroupResponse) ProtoReflect() protoreflect.Message
func (*CreateGroupResponse) Reset ¶ added in v0.0.4
func (x *CreateGroupResponse) Reset()
func (*CreateGroupResponse) String ¶ added in v0.0.4
func (x *CreateGroupResponse) String() string
func (*CreateGroupResponse) Validate ¶ added in v0.0.4
func (m *CreateGroupResponse) Validate() error
Validate checks the field values on CreateGroupResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateGroupResponse) ValidateAll ¶ added in v0.0.4
func (m *CreateGroupResponse) ValidateAll() error
ValidateAll checks the field values on CreateGroupResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateGroupResponseMultiError, or nil if none found.
type CreateGroupResponseMultiError ¶ added in v0.0.4
type CreateGroupResponseMultiError []error
CreateGroupResponseMultiError is an error wrapping multiple validation errors returned by CreateGroupResponse.ValidateAll() if the designated constraints aren't met.
func (CreateGroupResponseMultiError) AllErrors ¶ added in v0.0.4
func (m CreateGroupResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateGroupResponseMultiError) Error ¶ added in v0.0.4
func (m CreateGroupResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateGroupResponseValidationError ¶ added in v0.0.4
type CreateGroupResponseValidationError struct {
// contains filtered or unexported fields
}
CreateGroupResponseValidationError is the validation error returned by CreateGroupResponse.Validate if the designated constraints aren't met.
func (CreateGroupResponseValidationError) Cause ¶ added in v0.0.4
func (e CreateGroupResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateGroupResponseValidationError) Error ¶ added in v0.0.4
func (e CreateGroupResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateGroupResponseValidationError) ErrorName ¶ added in v0.0.4
func (e CreateGroupResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateGroupResponseValidationError) Field ¶ added in v0.0.4
func (e CreateGroupResponseValidationError) Field() string
Field function returns field value.
func (CreateGroupResponseValidationError) Key ¶ added in v0.0.4
func (e CreateGroupResponseValidationError) Key() bool
Key function returns key value.
func (CreateGroupResponseValidationError) Reason ¶ added in v0.0.4
func (e CreateGroupResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteGroupRequest ¶ added in v0.0.4
type DeleteGroupRequest struct { Gid int64 `protobuf:"varint,1,opt,name=gid,proto3" json:"gid,omitempty"` OwnerUid int64 `protobuf:"varint,2,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"` // contains filtered or unexported fields }
func (*DeleteGroupRequest) Descriptor
deprecated
added in
v0.0.4
func (*DeleteGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupRequest) GetGid ¶ added in v0.0.4
func (x *DeleteGroupRequest) GetGid() int64
func (*DeleteGroupRequest) GetOwnerUid ¶ added in v0.0.7
func (x *DeleteGroupRequest) GetOwnerUid() int64
func (*DeleteGroupRequest) ProtoMessage ¶ added in v0.0.4
func (*DeleteGroupRequest) ProtoMessage()
func (*DeleteGroupRequest) ProtoReflect ¶ added in v0.0.4
func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupRequest) Reset ¶ added in v0.0.4
func (x *DeleteGroupRequest) Reset()
func (*DeleteGroupRequest) String ¶ added in v0.0.4
func (x *DeleteGroupRequest) String() string
func (*DeleteGroupRequest) Validate ¶ added in v0.0.4
func (m *DeleteGroupRequest) Validate() error
Validate checks the field values on DeleteGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteGroupRequest) ValidateAll ¶ added in v0.0.4
func (m *DeleteGroupRequest) ValidateAll() error
ValidateAll checks the field values on DeleteGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteGroupRequestMultiError, or nil if none found.
type DeleteGroupRequestMultiError ¶ added in v0.0.4
type DeleteGroupRequestMultiError []error
DeleteGroupRequestMultiError is an error wrapping multiple validation errors returned by DeleteGroupRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteGroupRequestMultiError) AllErrors ¶ added in v0.0.4
func (m DeleteGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteGroupRequestMultiError) Error ¶ added in v0.0.4
func (m DeleteGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteGroupRequestValidationError ¶ added in v0.0.4
type DeleteGroupRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteGroupRequestValidationError is the validation error returned by DeleteGroupRequest.Validate if the designated constraints aren't met.
func (DeleteGroupRequestValidationError) Cause ¶ added in v0.0.4
func (e DeleteGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteGroupRequestValidationError) Error ¶ added in v0.0.4
func (e DeleteGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteGroupRequestValidationError) ErrorName ¶ added in v0.0.4
func (e DeleteGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteGroupRequestValidationError) Field ¶ added in v0.0.4
func (e DeleteGroupRequestValidationError) Field() string
Field function returns field value.
func (DeleteGroupRequestValidationError) Key ¶ added in v0.0.4
func (e DeleteGroupRequestValidationError) Key() bool
Key function returns key value.
func (DeleteGroupRequestValidationError) Reason ¶ added in v0.0.4
func (e DeleteGroupRequestValidationError) Reason() string
Reason function returns reason value.
type GetGroupRequest ¶ added in v0.0.4
type GetGroupRequest struct { Gid int64 `protobuf:"varint,1,opt,name=gid,proto3" json:"gid,omitempty"` OwnerUid int64 `protobuf:"varint,2,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"` WithMembers bool `protobuf:"varint,3,opt,name=with_members,json=withMembers,proto3" json:"with_members,omitempty"` WithInfo bool `protobuf:"varint,4,opt,name=with_info,json=withInfo,proto3" json:"with_info,omitempty"` // contains filtered or unexported fields }
func (*GetGroupRequest) Descriptor
deprecated
added in
v0.0.4
func (*GetGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.
func (*GetGroupRequest) GetGid ¶ added in v0.0.4
func (x *GetGroupRequest) GetGid() int64
func (*GetGroupRequest) GetOwnerUid ¶ added in v0.0.7
func (x *GetGroupRequest) GetOwnerUid() int64
func (*GetGroupRequest) GetWithInfo ¶ added in v0.0.7
func (x *GetGroupRequest) GetWithInfo() bool
func (*GetGroupRequest) GetWithMembers ¶ added in v0.0.4
func (x *GetGroupRequest) GetWithMembers() bool
func (*GetGroupRequest) ProtoMessage ¶ added in v0.0.4
func (*GetGroupRequest) ProtoMessage()
func (*GetGroupRequest) ProtoReflect ¶ added in v0.0.4
func (x *GetGroupRequest) ProtoReflect() protoreflect.Message
func (*GetGroupRequest) Reset ¶ added in v0.0.4
func (x *GetGroupRequest) Reset()
func (*GetGroupRequest) String ¶ added in v0.0.4
func (x *GetGroupRequest) String() string
func (*GetGroupRequest) Validate ¶ added in v0.0.4
func (m *GetGroupRequest) Validate() error
Validate checks the field values on GetGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetGroupRequest) ValidateAll ¶ added in v0.0.4
func (m *GetGroupRequest) ValidateAll() error
ValidateAll checks the field values on GetGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetGroupRequestMultiError, or nil if none found.
type GetGroupRequestMultiError ¶ added in v0.0.4
type GetGroupRequestMultiError []error
GetGroupRequestMultiError is an error wrapping multiple validation errors returned by GetGroupRequest.ValidateAll() if the designated constraints aren't met.
func (GetGroupRequestMultiError) AllErrors ¶ added in v0.0.4
func (m GetGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetGroupRequestMultiError) Error ¶ added in v0.0.4
func (m GetGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetGroupRequestValidationError ¶ added in v0.0.4
type GetGroupRequestValidationError struct {
// contains filtered or unexported fields
}
GetGroupRequestValidationError is the validation error returned by GetGroupRequest.Validate if the designated constraints aren't met.
func (GetGroupRequestValidationError) Cause ¶ added in v0.0.4
func (e GetGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (GetGroupRequestValidationError) Error ¶ added in v0.0.4
func (e GetGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetGroupRequestValidationError) ErrorName ¶ added in v0.0.4
func (e GetGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetGroupRequestValidationError) Field ¶ added in v0.0.4
func (e GetGroupRequestValidationError) Field() string
Field function returns field value.
func (GetGroupRequestValidationError) Key ¶ added in v0.0.4
func (e GetGroupRequestValidationError) Key() bool
Key function returns key value.
func (GetGroupRequestValidationError) Reason ¶ added in v0.0.4
func (e GetGroupRequestValidationError) Reason() string
Reason function returns reason value.
type GetGroupResponse ¶ added in v0.0.4
type GetGroupResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*GetGroupResponse) Descriptor
deprecated
added in
v0.0.4
func (*GetGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupResponse.ProtoReflect.Descriptor instead.
func (*GetGroupResponse) GetError ¶ added in v0.0.9
func (x *GetGroupResponse) GetError() *errors.Error
func (*GetGroupResponse) GetGroup ¶ added in v0.0.4
func (x *GetGroupResponse) GetGroup() *Group
func (*GetGroupResponse) ProtoMessage ¶ added in v0.0.4
func (*GetGroupResponse) ProtoMessage()
func (*GetGroupResponse) ProtoReflect ¶ added in v0.0.4
func (x *GetGroupResponse) ProtoReflect() protoreflect.Message
func (*GetGroupResponse) Reset ¶ added in v0.0.4
func (x *GetGroupResponse) Reset()
func (*GetGroupResponse) String ¶ added in v0.0.4
func (x *GetGroupResponse) String() string
func (*GetGroupResponse) Validate ¶ added in v0.0.4
func (m *GetGroupResponse) Validate() error
Validate checks the field values on GetGroupResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetGroupResponse) ValidateAll ¶ added in v0.0.4
func (m *GetGroupResponse) ValidateAll() error
ValidateAll checks the field values on GetGroupResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetGroupResponseMultiError, or nil if none found.
type GetGroupResponseMultiError ¶ added in v0.0.4
type GetGroupResponseMultiError []error
GetGroupResponseMultiError is an error wrapping multiple validation errors returned by GetGroupResponse.ValidateAll() if the designated constraints aren't met.
func (GetGroupResponseMultiError) AllErrors ¶ added in v0.0.4
func (m GetGroupResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetGroupResponseMultiError) Error ¶ added in v0.0.4
func (m GetGroupResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetGroupResponseValidationError ¶ added in v0.0.4
type GetGroupResponseValidationError struct {
// contains filtered or unexported fields
}
GetGroupResponseValidationError is the validation error returned by GetGroupResponse.Validate if the designated constraints aren't met.
func (GetGroupResponseValidationError) Cause ¶ added in v0.0.4
func (e GetGroupResponseValidationError) Cause() error
Cause function returns cause value.
func (GetGroupResponseValidationError) Error ¶ added in v0.0.4
func (e GetGroupResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetGroupResponseValidationError) ErrorName ¶ added in v0.0.4
func (e GetGroupResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetGroupResponseValidationError) Field ¶ added in v0.0.4
func (e GetGroupResponseValidationError) Field() string
Field function returns field value.
func (GetGroupResponseValidationError) Key ¶ added in v0.0.4
func (e GetGroupResponseValidationError) Key() bool
Key function returns key value.
func (GetGroupResponseValidationError) Reason ¶ added in v0.0.4
func (e GetGroupResponseValidationError) Reason() string
Reason function returns reason value.
type Group ¶
type Group struct { Gid int64 `protobuf:"varint,2,opt,name=gid,proto3" json:"gid,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` OwnerUid int64 `protobuf:"varint,6,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"` Owner *GroupMember `protobuf:"bytes,7,opt,name=owner,proto3,oneof" json:"owner,omitempty"` Members []*GroupMember `protobuf:"bytes,8,rep,name=members,proto3" json:"members,omitempty"` MaxMembers int32 `protobuf:"varint,9,opt,name=max_members,json=maxMembers,proto3" json:"max_members,omitempty"` MemberCount int32 `protobuf:"varint,10,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` Status GroupStatus `protobuf:"varint,11,opt,name=status,proto3,enum=api.user.group.v1.GroupStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetDescription ¶
func (*Group) GetMaxMembers ¶ added in v0.0.4
func (*Group) GetMemberCount ¶ added in v0.0.4
func (*Group) GetMembers ¶
func (x *Group) GetMembers() []*GroupMember
func (*Group) GetOwner ¶ added in v0.0.4
func (x *Group) GetOwner() *GroupMember
func (*Group) GetOwnerUid ¶ added in v0.0.4
func (*Group) GetStatus ¶
func (x *Group) GetStatus() GroupStatus
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
func (*Group) Validate ¶
Validate checks the field values on Group with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Group) ValidateAll ¶
ValidateAll checks the field values on Group with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GroupMultiError, or nil if none found.
type GroupMember ¶ added in v0.0.4
type GroupMember struct { Gid int64 `protobuf:"varint,2,opt,name=gid,proto3" json:"gid,omitempty"` Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"` User *v1.User `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"` Status GroupMember_Status `protobuf:"varint,5,opt,name=status,proto3,enum=api.user.group.v1.GroupMember_Status" json:"status,omitempty"` Type GroupMember_Type `protobuf:"varint,6,opt,name=type,proto3,enum=api.user.group.v1.GroupMember_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*GroupMember) Descriptor
deprecated
added in
v0.0.4
func (*GroupMember) Descriptor() ([]byte, []int)
Deprecated: Use GroupMember.ProtoReflect.Descriptor instead.
func (*GroupMember) GetGid ¶ added in v0.0.4
func (x *GroupMember) GetGid() int64
func (*GroupMember) GetStatus ¶ added in v0.0.4
func (x *GroupMember) GetStatus() GroupMember_Status
func (*GroupMember) GetType ¶ added in v0.0.4
func (x *GroupMember) GetType() GroupMember_Type
func (*GroupMember) GetUid ¶ added in v0.0.4
func (x *GroupMember) GetUid() int64
func (*GroupMember) GetUser ¶ added in v0.0.4
func (x *GroupMember) GetUser() *v1.User
func (*GroupMember) ProtoMessage ¶ added in v0.0.4
func (*GroupMember) ProtoMessage()
func (*GroupMember) ProtoReflect ¶ added in v0.0.4
func (x *GroupMember) ProtoReflect() protoreflect.Message
func (*GroupMember) Reset ¶ added in v0.0.4
func (x *GroupMember) Reset()
func (*GroupMember) String ¶ added in v0.0.4
func (x *GroupMember) String() string
func (*GroupMember) Validate ¶ added in v0.0.4
func (m *GroupMember) Validate() error
Validate checks the field values on GroupMember with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GroupMember) ValidateAll ¶ added in v0.0.4
func (m *GroupMember) ValidateAll() error
ValidateAll checks the field values on GroupMember with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GroupMemberMultiError, or nil if none found.
type GroupMemberMultiError ¶ added in v0.0.4
type GroupMemberMultiError []error
GroupMemberMultiError is an error wrapping multiple validation errors returned by GroupMember.ValidateAll() if the designated constraints aren't met.
func (GroupMemberMultiError) AllErrors ¶ added in v0.0.4
func (m GroupMemberMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GroupMemberMultiError) Error ¶ added in v0.0.4
func (m GroupMemberMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GroupMemberValidationError ¶ added in v0.0.4
type GroupMemberValidationError struct {
// contains filtered or unexported fields
}
GroupMemberValidationError is the validation error returned by GroupMember.Validate if the designated constraints aren't met.
func (GroupMemberValidationError) Cause ¶ added in v0.0.4
func (e GroupMemberValidationError) Cause() error
Cause function returns cause value.
func (GroupMemberValidationError) Error ¶ added in v0.0.4
func (e GroupMemberValidationError) Error() string
Error satisfies the builtin error interface
func (GroupMemberValidationError) ErrorName ¶ added in v0.0.4
func (e GroupMemberValidationError) ErrorName() string
ErrorName returns error name.
func (GroupMemberValidationError) Field ¶ added in v0.0.4
func (e GroupMemberValidationError) Field() string
Field function returns field value.
func (GroupMemberValidationError) Key ¶ added in v0.0.4
func (e GroupMemberValidationError) Key() bool
Key function returns key value.
func (GroupMemberValidationError) Reason ¶ added in v0.0.4
func (e GroupMemberValidationError) Reason() string
Reason function returns reason value.
type GroupMember_Status ¶ added in v0.0.4
type GroupMember_Status int32
const ( GroupMember_StatusActive GroupMember_Status = 0 GroupMember_StatusSilent GroupMember_Status = 1 // more statuses )
func (GroupMember_Status) Descriptor ¶ added in v0.0.4
func (GroupMember_Status) Descriptor() protoreflect.EnumDescriptor
func (GroupMember_Status) Enum ¶ added in v0.0.4
func (x GroupMember_Status) Enum() *GroupMember_Status
func (GroupMember_Status) EnumDescriptor
deprecated
added in
v0.0.4
func (GroupMember_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupMember_Status.Descriptor instead.
func (GroupMember_Status) Number ¶ added in v0.0.4
func (x GroupMember_Status) Number() protoreflect.EnumNumber
func (GroupMember_Status) String ¶ added in v0.0.4
func (x GroupMember_Status) String() string
func (GroupMember_Status) Type ¶ added in v0.0.4
func (GroupMember_Status) Type() protoreflect.EnumType
type GroupMember_Type ¶ added in v0.0.4
type GroupMember_Type int32
const ( GroupMember_TypeOwner GroupMember_Type = 0 GroupMember_TypeMember GroupMember_Type = 1 // more types )
func (GroupMember_Type) Descriptor ¶ added in v0.0.4
func (GroupMember_Type) Descriptor() protoreflect.EnumDescriptor
func (GroupMember_Type) Enum ¶ added in v0.0.4
func (x GroupMember_Type) Enum() *GroupMember_Type
func (GroupMember_Type) EnumDescriptor
deprecated
added in
v0.0.4
func (GroupMember_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupMember_Type.Descriptor instead.
func (GroupMember_Type) Number ¶ added in v0.0.4
func (x GroupMember_Type) Number() protoreflect.EnumNumber
func (GroupMember_Type) String ¶ added in v0.0.4
func (x GroupMember_Type) String() string
func (GroupMember_Type) Type ¶ added in v0.0.4
func (GroupMember_Type) Type() protoreflect.EnumType
type GroupMultiError ¶
type GroupMultiError []error
GroupMultiError is an error wrapping multiple validation errors returned by Group.ValidateAll() if the designated constraints aren't met.
func (GroupMultiError) AllErrors ¶
func (m GroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GroupMultiError) Error ¶
func (m GroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GroupServiceClient ¶
type GroupServiceClient interface { GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error) ListGroups(ctx context.Context, in *ListGroupsRequest, opts ...grpc.CallOption) (*ListGroupsResponse, error) CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*CreateGroupResponse, error) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*UpdateGroupResponse, error) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*errors.Error, error) AddGroupMember(ctx context.Context, in *ChangeGroupMemberRequest, opts ...grpc.CallOption) (*ChangeGroupMemberResponse, error) RemoveGroupMember(ctx context.Context, in *ChangeGroupMemberRequest, opts ...grpc.CallOption) (*ChangeGroupMemberResponse, 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.
func NewGroupServiceClient ¶
func NewGroupServiceClient(cc grpc.ClientConnInterface) GroupServiceClient
type GroupServiceServer ¶
type GroupServiceServer interface { GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error) ListGroups(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error) DeleteGroup(context.Context, *DeleteGroupRequest) (*errors.Error, error) AddGroupMember(context.Context, *ChangeGroupMemberRequest) (*ChangeGroupMemberResponse, error) RemoveGroupMember(context.Context, *ChangeGroupMemberRequest) (*ChangeGroupMemberResponse, error) // contains filtered or unexported methods }
GroupServiceServer is the server API for GroupService service. All implementations must embed UnimplementedGroupServiceServer for forward compatibility
type GroupStatus ¶
type GroupStatus int32
const ( GroupStatus_Active GroupStatus = 0 GroupStatus_Silent GroupStatus = 1 // more statuses )
func (GroupStatus) Descriptor ¶
func (GroupStatus) Descriptor() protoreflect.EnumDescriptor
func (GroupStatus) Enum ¶
func (x GroupStatus) Enum() *GroupStatus
func (GroupStatus) EnumDescriptor
deprecated
func (GroupStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupStatus.Descriptor instead.
func (GroupStatus) Number ¶
func (x GroupStatus) Number() protoreflect.EnumNumber
func (GroupStatus) String ¶
func (x GroupStatus) String() string
func (GroupStatus) Type ¶
func (GroupStatus) Type() protoreflect.EnumType
type GroupValidationError ¶
type GroupValidationError struct {
// contains filtered or unexported fields
}
GroupValidationError is the validation error returned by Group.Validate if the designated constraints aren't met.
func (GroupValidationError) Cause ¶
func (e GroupValidationError) Cause() error
Cause function returns cause value.
func (GroupValidationError) Error ¶
func (e GroupValidationError) Error() string
Error satisfies the builtin error interface
func (GroupValidationError) ErrorName ¶
func (e GroupValidationError) ErrorName() string
ErrorName returns error name.
func (GroupValidationError) Field ¶
func (e GroupValidationError) Field() string
Field function returns field value.
func (GroupValidationError) Key ¶
func (e GroupValidationError) Key() bool
Key function returns key value.
func (GroupValidationError) Reason ¶
func (e GroupValidationError) Reason() string
Reason function returns reason value.
type ListGroupsRequest ¶ added in v0.0.4
type ListGroupsRequest struct { // list all groups no matter user is member or owner. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListGroupsRequest) Descriptor
deprecated
added in
v0.0.4
func (*ListGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListGroupsRequest) GetPage ¶ added in v0.0.4
func (x *ListGroupsRequest) GetPage() int32
func (*ListGroupsRequest) GetPageSize ¶ added in v0.0.4
func (x *ListGroupsRequest) GetPageSize() int32
func (*ListGroupsRequest) GetUid ¶ added in v0.0.4
func (x *ListGroupsRequest) GetUid() int64
func (*ListGroupsRequest) ProtoMessage ¶ added in v0.0.4
func (*ListGroupsRequest) ProtoMessage()
func (*ListGroupsRequest) ProtoReflect ¶ added in v0.0.4
func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message
func (*ListGroupsRequest) Reset ¶ added in v0.0.4
func (x *ListGroupsRequest) Reset()
func (*ListGroupsRequest) String ¶ added in v0.0.4
func (x *ListGroupsRequest) String() string
func (*ListGroupsRequest) Validate ¶ added in v0.0.4
func (m *ListGroupsRequest) Validate() error
Validate checks the field values on ListGroupsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListGroupsRequest) ValidateAll ¶ added in v0.0.4
func (m *ListGroupsRequest) ValidateAll() error
ValidateAll checks the field values on ListGroupsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListGroupsRequestMultiError, or nil if none found.
type ListGroupsRequestMultiError ¶ added in v0.0.4
type ListGroupsRequestMultiError []error
ListGroupsRequestMultiError is an error wrapping multiple validation errors returned by ListGroupsRequest.ValidateAll() if the designated constraints aren't met.
func (ListGroupsRequestMultiError) AllErrors ¶ added in v0.0.4
func (m ListGroupsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListGroupsRequestMultiError) Error ¶ added in v0.0.4
func (m ListGroupsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListGroupsRequestValidationError ¶ added in v0.0.4
type ListGroupsRequestValidationError struct {
// contains filtered or unexported fields
}
ListGroupsRequestValidationError is the validation error returned by ListGroupsRequest.Validate if the designated constraints aren't met.
func (ListGroupsRequestValidationError) Cause ¶ added in v0.0.4
func (e ListGroupsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListGroupsRequestValidationError) Error ¶ added in v0.0.4
func (e ListGroupsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListGroupsRequestValidationError) ErrorName ¶ added in v0.0.4
func (e ListGroupsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListGroupsRequestValidationError) Field ¶ added in v0.0.4
func (e ListGroupsRequestValidationError) Field() string
Field function returns field value.
func (ListGroupsRequestValidationError) Key ¶ added in v0.0.4
func (e ListGroupsRequestValidationError) Key() bool
Key function returns key value.
func (ListGroupsRequestValidationError) Reason ¶ added in v0.0.4
func (e ListGroupsRequestValidationError) Reason() string
Reason function returns reason value.
type ListGroupsResponse ¶ added in v0.0.4
type ListGroupsResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Groups []*Group `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*ListGroupsResponse) Descriptor
deprecated
added in
v0.0.4
func (*ListGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListGroupsResponse) GetError ¶ added in v0.0.9
func (x *ListGroupsResponse) GetError() *errors.Error
func (*ListGroupsResponse) GetGroups ¶ added in v0.0.4
func (x *ListGroupsResponse) GetGroups() []*Group
func (*ListGroupsResponse) ProtoMessage ¶ added in v0.0.4
func (*ListGroupsResponse) ProtoMessage()
func (*ListGroupsResponse) ProtoReflect ¶ added in v0.0.4
func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message
func (*ListGroupsResponse) Reset ¶ added in v0.0.4
func (x *ListGroupsResponse) Reset()
func (*ListGroupsResponse) String ¶ added in v0.0.4
func (x *ListGroupsResponse) String() string
func (*ListGroupsResponse) Validate ¶ added in v0.0.4
func (m *ListGroupsResponse) Validate() error
Validate checks the field values on ListGroupsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListGroupsResponse) ValidateAll ¶ added in v0.0.4
func (m *ListGroupsResponse) ValidateAll() error
ValidateAll checks the field values on ListGroupsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListGroupsResponseMultiError, or nil if none found.
type ListGroupsResponseMultiError ¶ added in v0.0.4
type ListGroupsResponseMultiError []error
ListGroupsResponseMultiError is an error wrapping multiple validation errors returned by ListGroupsResponse.ValidateAll() if the designated constraints aren't met.
func (ListGroupsResponseMultiError) AllErrors ¶ added in v0.0.4
func (m ListGroupsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListGroupsResponseMultiError) Error ¶ added in v0.0.4
func (m ListGroupsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListGroupsResponseValidationError ¶ added in v0.0.4
type ListGroupsResponseValidationError struct {
// contains filtered or unexported fields
}
ListGroupsResponseValidationError is the validation error returned by ListGroupsResponse.Validate if the designated constraints aren't met.
func (ListGroupsResponseValidationError) Cause ¶ added in v0.0.4
func (e ListGroupsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListGroupsResponseValidationError) Error ¶ added in v0.0.4
func (e ListGroupsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListGroupsResponseValidationError) ErrorName ¶ added in v0.0.4
func (e ListGroupsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListGroupsResponseValidationError) Field ¶ added in v0.0.4
func (e ListGroupsResponseValidationError) Field() string
Field function returns field value.
func (ListGroupsResponseValidationError) Key ¶ added in v0.0.4
func (e ListGroupsResponseValidationError) Key() bool
Key function returns key value.
func (ListGroupsResponseValidationError) Reason ¶ added in v0.0.4
func (e ListGroupsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedGroupServiceServer ¶
type UnimplementedGroupServiceServer struct { }
UnimplementedGroupServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGroupServiceServer) AddGroupMember ¶
func (UnimplementedGroupServiceServer) AddGroupMember(context.Context, *ChangeGroupMemberRequest) (*ChangeGroupMemberResponse, error)
func (UnimplementedGroupServiceServer) CreateGroup ¶
func (UnimplementedGroupServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error)
func (UnimplementedGroupServiceServer) DeleteGroup ¶
func (UnimplementedGroupServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*errors.Error, error)
func (UnimplementedGroupServiceServer) GetGroup ¶
func (UnimplementedGroupServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
func (UnimplementedGroupServiceServer) ListGroups ¶ added in v0.0.4
func (UnimplementedGroupServiceServer) ListGroups(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error)
func (UnimplementedGroupServiceServer) RemoveGroupMember ¶
func (UnimplementedGroupServiceServer) RemoveGroupMember(context.Context, *ChangeGroupMemberRequest) (*ChangeGroupMemberResponse, error)
func (UnimplementedGroupServiceServer) UpdateGroup ¶
func (UnimplementedGroupServiceServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error)
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 UpdateGroupRequest ¶ added in v0.0.4
type UpdateGroupRequest struct { Gid int64 `protobuf:"varint,1,opt,name=gid,proto3" json:"gid,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` Avatar *string `protobuf:"bytes,4,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` OwnerUid int64 `protobuf:"varint,5,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"` // current user id // contains filtered or unexported fields }
func (*UpdateGroupRequest) Descriptor
deprecated
added in
v0.0.4
func (*UpdateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateGroupRequest) GetAvatar ¶ added in v0.0.4
func (x *UpdateGroupRequest) GetAvatar() string
func (*UpdateGroupRequest) GetDescription ¶ added in v0.0.4
func (x *UpdateGroupRequest) GetDescription() string
func (*UpdateGroupRequest) GetGid ¶ added in v0.0.4
func (x *UpdateGroupRequest) GetGid() int64
func (*UpdateGroupRequest) GetName ¶ added in v0.0.4
func (x *UpdateGroupRequest) GetName() string
func (*UpdateGroupRequest) GetOwnerUid ¶ added in v0.0.7
func (x *UpdateGroupRequest) GetOwnerUid() int64
func (*UpdateGroupRequest) ProtoMessage ¶ added in v0.0.4
func (*UpdateGroupRequest) ProtoMessage()
func (*UpdateGroupRequest) ProtoReflect ¶ added in v0.0.4
func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message
func (*UpdateGroupRequest) Reset ¶ added in v0.0.4
func (x *UpdateGroupRequest) Reset()
func (*UpdateGroupRequest) String ¶ added in v0.0.4
func (x *UpdateGroupRequest) String() string
func (*UpdateGroupRequest) Validate ¶ added in v0.0.4
func (m *UpdateGroupRequest) Validate() error
Validate checks the field values on UpdateGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateGroupRequest) ValidateAll ¶ added in v0.0.4
func (m *UpdateGroupRequest) ValidateAll() error
ValidateAll checks the field values on UpdateGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateGroupRequestMultiError, or nil if none found.
type UpdateGroupRequestMultiError ¶ added in v0.0.4
type UpdateGroupRequestMultiError []error
UpdateGroupRequestMultiError is an error wrapping multiple validation errors returned by UpdateGroupRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateGroupRequestMultiError) AllErrors ¶ added in v0.0.4
func (m UpdateGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateGroupRequestMultiError) Error ¶ added in v0.0.4
func (m UpdateGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateGroupRequestValidationError ¶ added in v0.0.4
type UpdateGroupRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateGroupRequestValidationError is the validation error returned by UpdateGroupRequest.Validate if the designated constraints aren't met.
func (UpdateGroupRequestValidationError) Cause ¶ added in v0.0.4
func (e UpdateGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateGroupRequestValidationError) Error ¶ added in v0.0.4
func (e UpdateGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateGroupRequestValidationError) ErrorName ¶ added in v0.0.4
func (e UpdateGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateGroupRequestValidationError) Field ¶ added in v0.0.4
func (e UpdateGroupRequestValidationError) Field() string
Field function returns field value.
func (UpdateGroupRequestValidationError) Key ¶ added in v0.0.4
func (e UpdateGroupRequestValidationError) Key() bool
Key function returns key value.
func (UpdateGroupRequestValidationError) Reason ¶ added in v0.0.4
func (e UpdateGroupRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateGroupResponse ¶ added in v0.0.4
type UpdateGroupResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*UpdateGroupResponse) Descriptor
deprecated
added in
v0.0.4
func (*UpdateGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupResponse.ProtoReflect.Descriptor instead.
func (*UpdateGroupResponse) GetError ¶ added in v0.0.9
func (x *UpdateGroupResponse) GetError() *errors.Error
func (*UpdateGroupResponse) GetGroup ¶ added in v0.0.4
func (x *UpdateGroupResponse) GetGroup() *Group
func (*UpdateGroupResponse) ProtoMessage ¶ added in v0.0.4
func (*UpdateGroupResponse) ProtoMessage()
func (*UpdateGroupResponse) ProtoReflect ¶ added in v0.0.4
func (x *UpdateGroupResponse) ProtoReflect() protoreflect.Message
func (*UpdateGroupResponse) Reset ¶ added in v0.0.4
func (x *UpdateGroupResponse) Reset()
func (*UpdateGroupResponse) String ¶ added in v0.0.4
func (x *UpdateGroupResponse) String() string
func (*UpdateGroupResponse) Validate ¶ added in v0.0.4
func (m *UpdateGroupResponse) Validate() error
Validate checks the field values on UpdateGroupResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateGroupResponse) ValidateAll ¶ added in v0.0.4
func (m *UpdateGroupResponse) ValidateAll() error
ValidateAll checks the field values on UpdateGroupResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateGroupResponseMultiError, or nil if none found.
type UpdateGroupResponseMultiError ¶ added in v0.0.4
type UpdateGroupResponseMultiError []error
UpdateGroupResponseMultiError is an error wrapping multiple validation errors returned by UpdateGroupResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateGroupResponseMultiError) AllErrors ¶ added in v0.0.4
func (m UpdateGroupResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateGroupResponseMultiError) Error ¶ added in v0.0.4
func (m UpdateGroupResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateGroupResponseValidationError ¶ added in v0.0.4
type UpdateGroupResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateGroupResponseValidationError is the validation error returned by UpdateGroupResponse.Validate if the designated constraints aren't met.
func (UpdateGroupResponseValidationError) Cause ¶ added in v0.0.4
func (e UpdateGroupResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateGroupResponseValidationError) Error ¶ added in v0.0.4
func (e UpdateGroupResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateGroupResponseValidationError) ErrorName ¶ added in v0.0.4
func (e UpdateGroupResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateGroupResponseValidationError) Field ¶ added in v0.0.4
func (e UpdateGroupResponseValidationError) Field() string
Field function returns field value.
func (UpdateGroupResponseValidationError) Key ¶ added in v0.0.4
func (e UpdateGroupResponseValidationError) Key() bool
Key function returns key value.
func (UpdateGroupResponseValidationError) Reason ¶ added in v0.0.4
func (e UpdateGroupResponseValidationError) Reason() string
Reason function returns reason value.