v1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GroupStatus_name = map[int32]string{
		0: "Active",
		1: "Silent",
	}
	GroupStatus_value = map[string]int32{
		"Active": 0,
		"Silent": 1,
	}
)

Enum value maps for GroupStatus.

View Source
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.

View Source
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.

View Source
var File_user_group_v1_group_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (ChangeGroupMemberRequestValidationError) Error added in v0.0.7

Error satisfies the builtin error interface

func (ChangeGroupMemberRequestValidationError) ErrorName added in v0.0.7

ErrorName returns error name.

func (ChangeGroupMemberRequestValidationError) Field added in v0.0.7

Field function returns field value.

func (ChangeGroupMemberRequestValidationError) Key added in v0.0.7

Key function returns key value.

func (ChangeGroupMemberRequestValidationError) Reason added in v0.0.7

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 (*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

AllErrors returns a list of validation violation errors.

func (ChangeGroupMemberResponseMultiError) Error added in v0.0.7

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

Cause function returns cause value.

func (ChangeGroupMemberResponseValidationError) Error added in v0.0.7

Error satisfies the builtin error interface

func (ChangeGroupMemberResponseValidationError) ErrorName added in v0.0.7

ErrorName returns error name.

func (ChangeGroupMemberResponseValidationError) Field added in v0.0.7

Field function returns field value.

func (ChangeGroupMemberResponseValidationError) Key added in v0.0.7

Key function returns key value.

func (ChangeGroupMemberResponseValidationError) Reason added in v0.0.7

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

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

Cause function returns cause value.

func (CreateGroupRequestValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (CreateGroupRequestValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (CreateGroupRequestValidationError) Field added in v0.0.4

Field function returns field value.

func (CreateGroupRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (CreateGroupRequestValidationError) Reason added in v0.0.4

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

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

Cause function returns cause value.

func (CreateGroupResponseValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (CreateGroupResponseValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (CreateGroupResponseValidationError) Field added in v0.0.4

Field function returns field value.

func (CreateGroupResponseValidationError) Key added in v0.0.4

Key function returns key value.

func (CreateGroupResponseValidationError) Reason added in v0.0.4

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

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

Cause function returns cause value.

func (DeleteGroupRequestValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (DeleteGroupRequestValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (DeleteGroupRequestValidationError) Field added in v0.0.4

Field function returns field value.

func (DeleteGroupRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (DeleteGroupRequestValidationError) Reason added in v0.0.4

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

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

Cause function returns cause value.

func (GetGroupRequestValidationError) Error added in v0.0.4

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

Field function returns field value.

func (GetGroupRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (GetGroupRequestValidationError) Reason added in v0.0.4

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

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

Cause function returns cause value.

func (GetGroupResponseValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (GetGroupResponseValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (GetGroupResponseValidationError) Field added in v0.0.4

Field function returns field value.

func (GetGroupResponseValidationError) Key added in v0.0.4

Key function returns key value.

func (GetGroupResponseValidationError) Reason added in v0.0.4

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) Descriptor() ([]byte, []int)

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetAvatar added in v0.0.4

func (x *Group) GetAvatar() string

func (*Group) GetDescription

func (x *Group) GetDescription() string

func (*Group) GetGid added in v0.0.4

func (x *Group) GetGid() int64

func (*Group) GetMaxMembers added in v0.0.4

func (x *Group) GetMaxMembers() int32

func (*Group) GetMemberCount added in v0.0.4

func (x *Group) GetMemberCount() int32

func (*Group) GetMembers

func (x *Group) GetMembers() []*GroupMember

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetOwner added in v0.0.4

func (x *Group) GetOwner() *GroupMember

func (*Group) GetOwnerUid added in v0.0.4

func (x *Group) GetOwnerUid() int64

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) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

func (*Group) Validate

func (m *Group) Validate() error

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

func (m *Group) ValidateAll() error

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

Cause function returns cause value.

func (GroupMemberValidationError) Error added in v0.0.4

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

Field function returns field value.

func (GroupMemberValidationError) Key added in v0.0.4

Key function returns key value.

func (GroupMemberValidationError) Reason added in v0.0.4

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) Enum added in v0.0.4

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 (GroupMember_Status) String added in v0.0.4

func (x GroupMember_Status) String() string

func (GroupMember_Status) Type added in v0.0.4

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) Enum added in v0.0.4

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 (GroupMember_Type) String added in v0.0.4

func (x GroupMember_Type) String() string

func (GroupMember_Type) Type added in v0.0.4

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.

type GroupServiceServer

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) 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

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

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

Cause function returns cause value.

func (ListGroupsRequestValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (ListGroupsRequestValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (ListGroupsRequestValidationError) Field added in v0.0.4

Field function returns field value.

func (ListGroupsRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (ListGroupsRequestValidationError) Reason added in v0.0.4

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

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

Cause function returns cause value.

func (ListGroupsResponseValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (ListGroupsResponseValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (ListGroupsResponseValidationError) Field added in v0.0.4

Field function returns field value.

func (ListGroupsResponseValidationError) Key added in v0.0.4

Key function returns key value.

func (ListGroupsResponseValidationError) Reason added in v0.0.4

Reason function returns reason value.

type UnimplementedGroupServiceServer

type UnimplementedGroupServiceServer struct {
}

UnimplementedGroupServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGroupServiceServer) AddGroupMember

func (UnimplementedGroupServiceServer) CreateGroup

func (UnimplementedGroupServiceServer) DeleteGroup

func (UnimplementedGroupServiceServer) GetGroup

func (UnimplementedGroupServiceServer) ListGroups added in v0.0.4

func (UnimplementedGroupServiceServer) RemoveGroupMember

func (UnimplementedGroupServiceServer) UpdateGroup

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

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

Cause function returns cause value.

func (UpdateGroupRequestValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (UpdateGroupRequestValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (UpdateGroupRequestValidationError) Field added in v0.0.4

Field function returns field value.

func (UpdateGroupRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (UpdateGroupRequestValidationError) Reason added in v0.0.4

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

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

Cause function returns cause value.

func (UpdateGroupResponseValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (UpdateGroupResponseValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (UpdateGroupResponseValidationError) Field added in v0.0.4

Field function returns field value.

func (UpdateGroupResponseValidationError) Key added in v0.0.4

Key function returns key value.

func (UpdateGroupResponseValidationError) Reason added in v0.0.4

Reason function returns reason value.

Jump to

Keyboard shortcuts

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