v1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 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 AddGroupMemberRequest added in v0.0.4

type AddGroupMemberRequest struct {
	Gid string   `protobuf:"bytes,1,opt,name=gid,proto3" json:"gid,omitempty"`
	Uid []string `protobuf:"bytes,2,rep,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*AddGroupMemberRequest) Descriptor deprecated added in v0.0.4

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

Deprecated: Use AddGroupMemberRequest.ProtoReflect.Descriptor instead.

func (*AddGroupMemberRequest) GetGid added in v0.0.4

func (x *AddGroupMemberRequest) GetGid() string

func (*AddGroupMemberRequest) GetUid added in v0.0.4

func (x *AddGroupMemberRequest) GetUid() []string

func (*AddGroupMemberRequest) ProtoMessage added in v0.0.4

func (*AddGroupMemberRequest) ProtoMessage()

func (*AddGroupMemberRequest) ProtoReflect added in v0.0.4

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

func (*AddGroupMemberRequest) Reset added in v0.0.4

func (x *AddGroupMemberRequest) Reset()

func (*AddGroupMemberRequest) String added in v0.0.4

func (x *AddGroupMemberRequest) String() string

func (*AddGroupMemberRequest) Validate added in v0.0.4

func (m *AddGroupMemberRequest) Validate() error

Validate checks the field values on AddGroupMemberRequest 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 (*AddGroupMemberRequest) ValidateAll added in v0.0.4

func (m *AddGroupMemberRequest) ValidateAll() error

ValidateAll checks the field values on AddGroupMemberRequest 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 AddGroupMemberRequestMultiError, or nil if none found.

type AddGroupMemberRequestMultiError added in v0.0.4

type AddGroupMemberRequestMultiError []error

AddGroupMemberRequestMultiError is an error wrapping multiple validation errors returned by AddGroupMemberRequest.ValidateAll() if the designated constraints aren't met.

func (AddGroupMemberRequestMultiError) AllErrors added in v0.0.4

func (m AddGroupMemberRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddGroupMemberRequestMultiError) Error added in v0.0.4

Error returns a concatenation of all the error messages it wraps.

type AddGroupMemberRequestValidationError added in v0.0.4

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

AddGroupMemberRequestValidationError is the validation error returned by AddGroupMemberRequest.Validate if the designated constraints aren't met.

func (AddGroupMemberRequestValidationError) Cause added in v0.0.4

Cause function returns cause value.

func (AddGroupMemberRequestValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (AddGroupMemberRequestValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (AddGroupMemberRequestValidationError) Field added in v0.0.4

Field function returns field value.

func (AddGroupMemberRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (AddGroupMemberRequestValidationError) Reason added in v0.0.4

Reason function returns reason value.

type AddGroupMemberResponse added in v0.0.4

type AddGroupMemberResponse struct {
	Response *response.BaseResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	Added    int32                  `protobuf:"varint,2,opt,name=added,proto3" json:"added,omitempty"`
	// contains filtered or unexported fields
}

func (*AddGroupMemberResponse) Descriptor deprecated added in v0.0.4

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

Deprecated: Use AddGroupMemberResponse.ProtoReflect.Descriptor instead.

func (*AddGroupMemberResponse) GetAdded added in v0.0.4

func (x *AddGroupMemberResponse) GetAdded() int32

func (*AddGroupMemberResponse) GetResponse added in v0.0.4

func (x *AddGroupMemberResponse) GetResponse() *response.BaseResponse

func (*AddGroupMemberResponse) ProtoMessage added in v0.0.4

func (*AddGroupMemberResponse) ProtoMessage()

func (*AddGroupMemberResponse) ProtoReflect added in v0.0.4

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

func (*AddGroupMemberResponse) Reset added in v0.0.4

func (x *AddGroupMemberResponse) Reset()

func (*AddGroupMemberResponse) String added in v0.0.4

func (x *AddGroupMemberResponse) String() string

func (*AddGroupMemberResponse) Validate added in v0.0.4

func (m *AddGroupMemberResponse) Validate() error

Validate checks the field values on AddGroupMemberResponse 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 (*AddGroupMemberResponse) ValidateAll added in v0.0.4

func (m *AddGroupMemberResponse) ValidateAll() error

ValidateAll checks the field values on AddGroupMemberResponse 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 AddGroupMemberResponseMultiError, or nil if none found.

type AddGroupMemberResponseMultiError added in v0.0.4

type AddGroupMemberResponseMultiError []error

AddGroupMemberResponseMultiError is an error wrapping multiple validation errors returned by AddGroupMemberResponse.ValidateAll() if the designated constraints aren't met.

func (AddGroupMemberResponseMultiError) AllErrors added in v0.0.4

func (m AddGroupMemberResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddGroupMemberResponseMultiError) Error added in v0.0.4

Error returns a concatenation of all the error messages it wraps.

type AddGroupMemberResponseValidationError added in v0.0.4

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

AddGroupMemberResponseValidationError is the validation error returned by AddGroupMemberResponse.Validate if the designated constraints aren't met.

func (AddGroupMemberResponseValidationError) Cause added in v0.0.4

Cause function returns cause value.

func (AddGroupMemberResponseValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (AddGroupMemberResponseValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (AddGroupMemberResponseValidationError) Field added in v0.0.4

Field function returns field value.

func (AddGroupMemberResponseValidationError) Key added in v0.0.4

Key function returns key value.

func (AddGroupMemberResponseValidationError) Reason added in v0.0.4

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    string   `protobuf:"bytes,4,opt,name=owner_uid,json=ownerUid,proto3" json:"owner_uid,omitempty"`
	MembersUid  []string `protobuf:"bytes,5,rep,name=members_uid,json=membersUid,proto3" json:"members_uid,omitempty"` // todo: limit to small number
	// 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() []string

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

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 {
	Response *response.BaseResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,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) GetGroup added in v0.0.4

func (x *CreateGroupResponse) GetGroup() *Group

func (*CreateGroupResponse) GetResponse added in v0.0.4

func (x *CreateGroupResponse) GetResponse() *response.BaseResponse

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 string `protobuf:"bytes,1,opt,name=gid,proto3" json:"gid,omitempty"`
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"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() string

func (*DeleteGroupRequest) GetUid added in v0.0.4

func (x *DeleteGroupRequest) GetUid() string

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         string `protobuf:"bytes,1,opt,name=gid,proto3" json:"gid,omitempty"`
	WithMembers bool   `protobuf:"varint,2,opt,name=with_members,json=withMembers,proto3" json:"with_members,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() string

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 {
	Response *response.BaseResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,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) GetGroup added in v0.0.4

func (x *GetGroupResponse) GetGroup() *Group

func (*GetGroupResponse) GetResponse added in v0.0.4

func (x *GetGroupResponse) GetResponse() *response.BaseResponse

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 {
	Id          int64          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Gid         string         `protobuf:"bytes,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    string         `protobuf:"bytes,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() string

func (*Group) GetId

func (x *Group) GetId() 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() string

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 {
	Id     int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // use as session id
	Gid    string             `protobuf:"bytes,2,opt,name=gid,proto3" json:"gid,omitempty"`
	Uid    string             `protobuf:"bytes,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() string

func (*GroupMember) GetId added in v0.0.4

func (x *GroupMember) GetId() 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() string

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) (*response.BaseResponse, error)
	AddGroupMember(ctx context.Context, in *AddGroupMemberRequest, opts ...grpc.CallOption) (*AddGroupMemberResponse, error)
	RemoveGroupMember(ctx context.Context, in *RemoveGroupMemberRequest, opts ...grpc.CallOption) (*RemoveGroupMemberResponse, 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      string `protobuf:"bytes,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() string

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 {
	Response *response.BaseResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,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) GetGroups added in v0.0.4

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

func (*ListGroupsResponse) GetResponse added in v0.0.4

func (x *ListGroupsResponse) GetResponse() *response.BaseResponse

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

type RemoveGroupMemberRequest struct {
	Gid string   `protobuf:"bytes,1,opt,name=gid,proto3" json:"gid,omitempty"`
	Uid []string `protobuf:"bytes,2,rep,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveGroupMemberRequest) Descriptor deprecated added in v0.0.4

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

Deprecated: Use RemoveGroupMemberRequest.ProtoReflect.Descriptor instead.

func (*RemoveGroupMemberRequest) GetGid added in v0.0.4

func (x *RemoveGroupMemberRequest) GetGid() string

func (*RemoveGroupMemberRequest) GetUid added in v0.0.4

func (x *RemoveGroupMemberRequest) GetUid() []string

func (*RemoveGroupMemberRequest) ProtoMessage added in v0.0.4

func (*RemoveGroupMemberRequest) ProtoMessage()

func (*RemoveGroupMemberRequest) ProtoReflect added in v0.0.4

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

func (*RemoveGroupMemberRequest) Reset added in v0.0.4

func (x *RemoveGroupMemberRequest) Reset()

func (*RemoveGroupMemberRequest) String added in v0.0.4

func (x *RemoveGroupMemberRequest) String() string

func (*RemoveGroupMemberRequest) Validate added in v0.0.4

func (m *RemoveGroupMemberRequest) Validate() error

Validate checks the field values on RemoveGroupMemberRequest 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 (*RemoveGroupMemberRequest) ValidateAll added in v0.0.4

func (m *RemoveGroupMemberRequest) ValidateAll() error

ValidateAll checks the field values on RemoveGroupMemberRequest 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 RemoveGroupMemberRequestMultiError, or nil if none found.

type RemoveGroupMemberRequestMultiError added in v0.0.4

type RemoveGroupMemberRequestMultiError []error

RemoveGroupMemberRequestMultiError is an error wrapping multiple validation errors returned by RemoveGroupMemberRequest.ValidateAll() if the designated constraints aren't met.

func (RemoveGroupMemberRequestMultiError) AllErrors added in v0.0.4

func (m RemoveGroupMemberRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoveGroupMemberRequestMultiError) Error added in v0.0.4

Error returns a concatenation of all the error messages it wraps.

type RemoveGroupMemberRequestValidationError added in v0.0.4

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

RemoveGroupMemberRequestValidationError is the validation error returned by RemoveGroupMemberRequest.Validate if the designated constraints aren't met.

func (RemoveGroupMemberRequestValidationError) Cause added in v0.0.4

Cause function returns cause value.

func (RemoveGroupMemberRequestValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (RemoveGroupMemberRequestValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (RemoveGroupMemberRequestValidationError) Field added in v0.0.4

Field function returns field value.

func (RemoveGroupMemberRequestValidationError) Key added in v0.0.4

Key function returns key value.

func (RemoveGroupMemberRequestValidationError) Reason added in v0.0.4

Reason function returns reason value.

type RemoveGroupMemberResponse added in v0.0.4

type RemoveGroupMemberResponse struct {
	Response *response.BaseResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	Removed  int32                  `protobuf:"varint,2,opt,name=removed,proto3" json:"removed,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveGroupMemberResponse) Descriptor deprecated added in v0.0.4

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

Deprecated: Use RemoveGroupMemberResponse.ProtoReflect.Descriptor instead.

func (*RemoveGroupMemberResponse) GetRemoved added in v0.0.4

func (x *RemoveGroupMemberResponse) GetRemoved() int32

func (*RemoveGroupMemberResponse) GetResponse added in v0.0.4

func (*RemoveGroupMemberResponse) ProtoMessage added in v0.0.4

func (*RemoveGroupMemberResponse) ProtoMessage()

func (*RemoveGroupMemberResponse) ProtoReflect added in v0.0.4

func (*RemoveGroupMemberResponse) Reset added in v0.0.4

func (x *RemoveGroupMemberResponse) Reset()

func (*RemoveGroupMemberResponse) String added in v0.0.4

func (x *RemoveGroupMemberResponse) String() string

func (*RemoveGroupMemberResponse) Validate added in v0.0.4

func (m *RemoveGroupMemberResponse) Validate() error

Validate checks the field values on RemoveGroupMemberResponse 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 (*RemoveGroupMemberResponse) ValidateAll added in v0.0.4

func (m *RemoveGroupMemberResponse) ValidateAll() error

ValidateAll checks the field values on RemoveGroupMemberResponse 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 RemoveGroupMemberResponseMultiError, or nil if none found.

type RemoveGroupMemberResponseMultiError added in v0.0.4

type RemoveGroupMemberResponseMultiError []error

RemoveGroupMemberResponseMultiError is an error wrapping multiple validation errors returned by RemoveGroupMemberResponse.ValidateAll() if the designated constraints aren't met.

func (RemoveGroupMemberResponseMultiError) AllErrors added in v0.0.4

AllErrors returns a list of validation violation errors.

func (RemoveGroupMemberResponseMultiError) Error added in v0.0.4

Error returns a concatenation of all the error messages it wraps.

type RemoveGroupMemberResponseValidationError added in v0.0.4

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

RemoveGroupMemberResponseValidationError is the validation error returned by RemoveGroupMemberResponse.Validate if the designated constraints aren't met.

func (RemoveGroupMemberResponseValidationError) Cause added in v0.0.4

Cause function returns cause value.

func (RemoveGroupMemberResponseValidationError) Error added in v0.0.4

Error satisfies the builtin error interface

func (RemoveGroupMemberResponseValidationError) ErrorName added in v0.0.4

ErrorName returns error name.

func (RemoveGroupMemberResponseValidationError) Field added in v0.0.4

Field function returns field value.

func (RemoveGroupMemberResponseValidationError) Key added in v0.0.4

Key function returns key value.

func (RemoveGroupMemberResponseValidationError) 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         string `protobuf:"bytes,1,opt,name=gid,proto3" json:"gid,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Avatar      string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Uid         string `protobuf:"bytes,5,opt,name=uid,proto3" json:"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() string

func (*UpdateGroupRequest) GetName added in v0.0.4

func (x *UpdateGroupRequest) GetName() string

func (*UpdateGroupRequest) GetUid added in v0.0.4

func (x *UpdateGroupRequest) GetUid() string

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 {
	Response *response.BaseResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,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) GetGroup added in v0.0.4

func (x *UpdateGroupResponse) GetGroup() *Group

func (*UpdateGroupResponse) GetResponse added in v0.0.4

func (x *UpdateGroupResponse) GetResponse() *response.BaseResponse

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