group

package
v0.0.0-...-4415367 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_group_group_proto protoreflect.FileDescriptor
View Source
var File_api_v1_group_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddMemberRequest

type AddMemberRequest struct {
	GroupId string   `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AddMemberRequest) Descriptor deprecated

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

Deprecated: Use AddMemberRequest.ProtoReflect.Descriptor instead.

func (*AddMemberRequest) GetGroupId

func (x *AddMemberRequest) GetGroupId() string

func (*AddMemberRequest) GetUserIds

func (x *AddMemberRequest) GetUserIds() []string

func (*AddMemberRequest) ProtoMessage

func (*AddMemberRequest) ProtoMessage()

func (*AddMemberRequest) ProtoReflect

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

func (*AddMemberRequest) Reset

func (x *AddMemberRequest) Reset()

func (*AddMemberRequest) String

func (x *AddMemberRequest) String() string

type AddMemberResponse

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

func (*AddMemberResponse) Descriptor deprecated

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

Deprecated: Use AddMemberResponse.ProtoReflect.Descriptor instead.

func (*AddMemberResponse) ProtoMessage

func (*AddMemberResponse) ProtoMessage()

func (*AddMemberResponse) ProtoReflect

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

func (*AddMemberResponse) Reset

func (x *AddMemberResponse) Reset()

func (*AddMemberResponse) String

func (x *AddMemberResponse) String() string

type CreateRequest

type CreateRequest struct {
	Initializers []*Update `protobuf:"bytes,1,rep,name=initializers,proto3" json:"initializers,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Create RPC

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetInitializers

func (x *CreateRequest) GetInitializers() []*Update

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

The response of a Groups.Create RPC

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetGroup

func (x *CreateResponse) GetGroup() *Group

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {

	// The group to delete
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

The request of a Group.Delete RPC

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetGroupId

func (x *DeleteRequest) GetGroupId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

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

The response of a Group.Delete RPC

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetByNameRequest

type GetByNameRequest struct {

	// The group name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Lookup RPC

func (*GetByNameRequest) Descriptor deprecated

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

Deprecated: Use GetByNameRequest.ProtoReflect.Descriptor instead.

func (*GetByNameRequest) GetName

func (x *GetByNameRequest) GetName() string

func (*GetByNameRequest) ProtoMessage

func (*GetByNameRequest) ProtoMessage()

func (*GetByNameRequest) ProtoReflect

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

func (*GetByNameRequest) Reset

func (x *GetByNameRequest) Reset()

func (*GetByNameRequest) String

func (x *GetByNameRequest) String() string

type GetByNameResponse

type GetByNameResponse struct {

	// The group
	Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

The response of a Groups.Lookup RPC

func (*GetByNameResponse) Descriptor deprecated

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

Deprecated: Use GetByNameResponse.ProtoReflect.Descriptor instead.

func (*GetByNameResponse) GetGroup

func (x *GetByNameResponse) GetGroup() *Group

func (*GetByNameResponse) ProtoMessage

func (*GetByNameResponse) ProtoMessage()

func (*GetByNameResponse) ProtoReflect

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

func (*GetByNameResponse) Reset

func (x *GetByNameResponse) Reset()

func (*GetByNameResponse) String

func (x *GetByNameResponse) String() string

type GetRequest

type GetRequest struct {

	// The group id
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Get RPC

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetGroupId

func (x *GetRequest) GetGroupId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

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

The response of a Groups.Get RPC

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetGroup

func (x *GetResponse) GetGroup() *Group

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type Group

type Group struct {
	GroupId    string                 `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	Name       string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	NumMembers uint64                 `protobuf:"varint,5,opt,name=num_members,json=numMembers,proto3" json:"num_members,omitempty"`
	Metadata   map[string][]byte      `` /* 157-byte string literal not displayed */
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetCreatedAt

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

func (*Group) GetGroupId

func (x *Group) GetGroupId() string

func (*Group) GetMetadata

func (x *Group) GetMetadata() map[string][]byte

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetNumMembers

func (x *Group) GetNumMembers() uint64

func (*Group) GetUpdatedAt

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

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type ListGroupsForUserRequest

type ListGroupsForUserRequest struct {
	UserId     string            `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGroupsForUserRequest) Descriptor deprecated

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

Deprecated: Use ListGroupsForUserRequest.ProtoReflect.Descriptor instead.

func (*ListGroupsForUserRequest) GetPagination

func (x *ListGroupsForUserRequest) GetPagination() *model.Pagination

func (*ListGroupsForUserRequest) GetUserId

func (x *ListGroupsForUserRequest) GetUserId() string

func (*ListGroupsForUserRequest) ProtoMessage

func (*ListGroupsForUserRequest) ProtoMessage()

func (*ListGroupsForUserRequest) ProtoReflect

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

func (*ListGroupsForUserRequest) Reset

func (x *ListGroupsForUserRequest) Reset()

func (*ListGroupsForUserRequest) String

func (x *ListGroupsForUserRequest) String() string

type ListGroupsForUserResponse

type ListGroupsForUserResponse struct {
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	Total  uint64   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGroupsForUserResponse) Descriptor deprecated

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

Deprecated: Use ListGroupsForUserResponse.ProtoReflect.Descriptor instead.

func (*ListGroupsForUserResponse) GetGroups

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

func (*ListGroupsForUserResponse) GetTotal

func (x *ListGroupsForUserResponse) GetTotal() uint64

func (*ListGroupsForUserResponse) ProtoMessage

func (*ListGroupsForUserResponse) ProtoMessage()

func (*ListGroupsForUserResponse) ProtoReflect

func (*ListGroupsForUserResponse) Reset

func (x *ListGroupsForUserResponse) Reset()

func (*ListGroupsForUserResponse) String

func (x *ListGroupsForUserResponse) String() string

type ListMembersRequest

type ListMembersRequest struct {
	GroupId    string            `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMembersRequest) Descriptor deprecated

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

Deprecated: Use ListMembersRequest.ProtoReflect.Descriptor instead.

func (*ListMembersRequest) GetGroupId

func (x *ListMembersRequest) GetGroupId() string

func (*ListMembersRequest) GetPagination

func (x *ListMembersRequest) GetPagination() *model.Pagination

func (*ListMembersRequest) ProtoMessage

func (*ListMembersRequest) ProtoMessage()

func (*ListMembersRequest) ProtoReflect

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

func (*ListMembersRequest) Reset

func (x *ListMembersRequest) Reset()

func (*ListMembersRequest) String

func (x *ListMembersRequest) String() string

type ListMembersResponse

type ListMembersResponse struct {
	Members []*model.MemberEntry `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	Total   uint64               `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMembersResponse) Descriptor deprecated

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

Deprecated: Use ListMembersResponse.ProtoReflect.Descriptor instead.

func (*ListMembersResponse) GetMembers

func (x *ListMembersResponse) GetMembers() []*model.MemberEntry

func (*ListMembersResponse) GetTotal

func (x *ListMembersResponse) GetTotal() uint64

func (*ListMembersResponse) ProtoMessage

func (*ListMembersResponse) ProtoMessage()

func (*ListMembersResponse) ProtoReflect

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

func (*ListMembersResponse) Reset

func (x *ListMembersResponse) Reset()

func (*ListMembersResponse) String

func (x *ListMembersResponse) String() string

type ListRequest

type ListRequest struct {
	Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Search     string            `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.List RPC

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPagination

func (x *ListRequest) GetPagination() *model.Pagination

func (*ListRequest) GetSearch

func (x *ListRequest) GetSearch() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {

	// list of groups
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// count of total amount of groups
	Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

The response of a Groups.List RPC

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetGroups

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

func (*ListResponse) GetTotal

func (x *ListResponse) GetTotal() uint64

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type RemoveMemberRequest

type RemoveMemberRequest struct {
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	UserId  string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveMemberRequest) Descriptor deprecated

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

Deprecated: Use RemoveMemberRequest.ProtoReflect.Descriptor instead.

func (*RemoveMemberRequest) GetGroupId

func (x *RemoveMemberRequest) GetGroupId() string

func (*RemoveMemberRequest) GetUserId

func (x *RemoveMemberRequest) GetUserId() string

func (*RemoveMemberRequest) ProtoMessage

func (*RemoveMemberRequest) ProtoMessage()

func (*RemoveMemberRequest) ProtoReflect

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

func (*RemoveMemberRequest) Reset

func (x *RemoveMemberRequest) Reset()

func (*RemoveMemberRequest) String

func (x *RemoveMemberRequest) String() string

type RemoveMemberResponse

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

func (*RemoveMemberResponse) Descriptor deprecated

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

Deprecated: Use RemoveMemberResponse.ProtoReflect.Descriptor instead.

func (*RemoveMemberResponse) ProtoMessage

func (*RemoveMemberResponse) ProtoMessage()

func (*RemoveMemberResponse) ProtoReflect

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

func (*RemoveMemberResponse) Reset

func (x *RemoveMemberResponse) Reset()

func (*RemoveMemberResponse) String

func (x *RemoveMemberResponse) String() string

type Update

type Update struct {

	// Types that are assignable to Field:
	//
	//	*Update_Name
	//	*Update_SetMetadata
	//	*Update_DeleteMetadataKey
	Field isUpdate_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

func (*Update) Descriptor deprecated

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetDeleteMetadataKey

func (x *Update) GetDeleteMetadataKey() string

func (*Update) GetField

func (m *Update) GetField() isUpdate_Field

func (*Update) GetName

func (x *Update) GetName() string

func (*Update) GetSetMetadata

func (x *Update) GetSetMetadata() *model.Metadata

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

type UpdateRequest

type UpdateRequest struct {
	Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	// The group id
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Update RPC

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetGroupId

func (x *UpdateRequest) GetGroupId() string

func (*UpdateRequest) GetUpdates

func (x *UpdateRequest) GetUpdates() []*Update

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

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

The response of a Groups.Update RPC

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

type Update_DeleteMetadataKey

type Update_DeleteMetadataKey struct {
	DeleteMetadataKey string `protobuf:"bytes,3,opt,name=delete_metadata_key,json=deleteMetadataKey,proto3,oneof"`
}

type Update_Name

type Update_Name struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3,oneof"`
}

type Update_SetMetadata

type Update_SetMetadata struct {
	SetMetadata *model.Metadata `protobuf:"bytes,2,opt,name=set_metadata,json=setMetadata,proto3,oneof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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