v1

package
v0.2.146 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PageDir_name = map[int32]string{
		0: "Asc",
		1: "Desc",
	}
	PageDir_value = map[string]int32{
		"Asc":  0,
		"Desc": 1,
	}
)

Enum value maps for PageDir.

View Source
var (
	Member_Role_name = map[int32]string{
		0: "None",
		1: "Pending",
		2: "Member",
		3: "Owner",
	}
	Member_Role_value = map[string]int32{
		"None":    0,
		"Pending": 1,
		"Member":  2,
		"Owner":   3,
	}
)

Enum value maps for Member_Role.

View Source
var File_circle_api_slice_v1_slice_proto protoreflect.FileDescriptor
View Source
var SliceAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slice_api.v1.SliceAPI",
	HandlerType: (*SliceAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _SliceAPI_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _SliceAPI_Update_Handler,
		},
		{
			MethodName: "SlicesConnection",
			Handler:    _SliceAPI_SlicesConnection_Handler,
		},
		{
			MethodName: "DeleteSlice",
			Handler:    _SliceAPI_DeleteSlice_Handler,
		},
		{
			MethodName: "GetMembers",
			Handler:    _SliceAPI_GetMembers_Handler,
		},
		{
			MethodName: "Join",
			Handler:    _SliceAPI_Join_Handler,
		},
		{
			MethodName: "Leave",
			Handler:    _SliceAPI_Leave_Handler,
		},
		{
			MethodName: "AcceptInvitation",
			Handler:    _SliceAPI_AcceptInvitation_Handler,
		},
		{
			MethodName: "DeclineInvitation",
			Handler:    _SliceAPI_DeclineInvitation_Handler,
		},
		{
			MethodName: "InviteUsersToSlice",
			Handler:    _SliceAPI_InviteUsersToSlice_Handler,
		},
		{
			MethodName: "RemoveUsersFromSlice",
			Handler:    _SliceAPI_RemoveUsersFromSlice_Handler,
		},
		{
			MethodName: "GetByID",
			Handler:    _SliceAPI_GetByID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "circle-api/slice/v1/slice.proto",
}

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

Functions

func RegisterSliceAPIServer

func RegisterSliceAPIServer(s grpc.ServiceRegistrar, srv SliceAPIServer)

Types

type AcceptInvitationRequest

type AcceptInvitationRequest struct {
	SliceId               string `protobuf:"bytes,1,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	UserRequestedToJoinID string `protobuf:"bytes,2,opt,name=userRequestedToJoinID,proto3" json:"userRequestedToJoinID,omitempty"`
	// contains filtered or unexported fields
}

func (*AcceptInvitationRequest) Descriptor deprecated

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

Deprecated: Use AcceptInvitationRequest.ProtoReflect.Descriptor instead.

func (*AcceptInvitationRequest) GetSliceId

func (x *AcceptInvitationRequest) GetSliceId() string

func (*AcceptInvitationRequest) GetUserRequestedToJoinID

func (x *AcceptInvitationRequest) GetUserRequestedToJoinID() string

func (*AcceptInvitationRequest) ProtoMessage

func (*AcceptInvitationRequest) ProtoMessage()

func (*AcceptInvitationRequest) ProtoReflect

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

func (*AcceptInvitationRequest) Reset

func (x *AcceptInvitationRequest) Reset()

func (*AcceptInvitationRequest) String

func (x *AcceptInvitationRequest) String() string

type AcceptInvitationResponse

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

func (*AcceptInvitationResponse) Descriptor deprecated

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

Deprecated: Use AcceptInvitationResponse.ProtoReflect.Descriptor instead.

func (*AcceptInvitationResponse) GetSlice

func (x *AcceptInvitationResponse) GetSlice() *Slice

func (*AcceptInvitationResponse) ProtoMessage

func (*AcceptInvitationResponse) ProtoMessage()

func (*AcceptInvitationResponse) ProtoReflect

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

func (*AcceptInvitationResponse) Reset

func (x *AcceptInvitationResponse) Reset()

func (*AcceptInvitationResponse) String

func (x *AcceptInvitationResponse) String() string

type CreateRequest

type CreateRequest struct {

	// Deprecated: Do not use.
	Input       *SliceInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	CircleId    string      `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	Name        string      `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Rules       string      `protobuf:"bytes,4,opt,name=rules,proto3" json:"rules,omitempty"`
	ImageId     string      `protobuf:"bytes,5,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	Description string      `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Hidden      bool        `protobuf:"varint,7,opt,name=hidden,proto3" json:"hidden,omitempty"`
	Private     bool        `protobuf:"varint,8,opt,name=private,proto3" json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetCircleId added in v0.2.138

func (x *CreateRequest) GetCircleId() string

func (*CreateRequest) GetDescription added in v0.2.138

func (x *CreateRequest) GetDescription() string

func (*CreateRequest) GetHidden added in v0.2.138

func (x *CreateRequest) GetHidden() bool

func (*CreateRequest) GetImageId added in v0.2.138

func (x *CreateRequest) GetImageId() string

func (*CreateRequest) GetInput deprecated

func (x *CreateRequest) GetInput() *SliceInput

Deprecated: Do not use.

func (*CreateRequest) GetName added in v0.2.138

func (x *CreateRequest) GetName() string

func (*CreateRequest) GetPrivate added in v0.2.138

func (x *CreateRequest) GetPrivate() bool

func (*CreateRequest) GetRules added in v0.2.138

func (x *CreateRequest) GetRules() string

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 {
	Slice *Slice `protobuf:"bytes,1,opt,name=slice,proto3" json:"slice,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetSlice

func (x *CreateResponse) GetSlice() *Slice

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 DeclineInvitationRequest

type DeclineInvitationRequest struct {
	SliceId               string `protobuf:"bytes,1,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	UserRequestedToJoinID string `protobuf:"bytes,2,opt,name=userRequestedToJoinID,proto3" json:"userRequestedToJoinID,omitempty"`
	// contains filtered or unexported fields
}

func (*DeclineInvitationRequest) Descriptor deprecated

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

Deprecated: Use DeclineInvitationRequest.ProtoReflect.Descriptor instead.

func (*DeclineInvitationRequest) GetSliceId

func (x *DeclineInvitationRequest) GetSliceId() string

func (*DeclineInvitationRequest) GetUserRequestedToJoinID

func (x *DeclineInvitationRequest) GetUserRequestedToJoinID() string

func (*DeclineInvitationRequest) ProtoMessage

func (*DeclineInvitationRequest) ProtoMessage()

func (*DeclineInvitationRequest) ProtoReflect

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

func (*DeclineInvitationRequest) Reset

func (x *DeclineInvitationRequest) Reset()

func (*DeclineInvitationRequest) String

func (x *DeclineInvitationRequest) String() string

type DeclineInvitationResponse

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

func (*DeclineInvitationResponse) Descriptor deprecated

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

Deprecated: Use DeclineInvitationResponse.ProtoReflect.Descriptor instead.

func (*DeclineInvitationResponse) GetSlice

func (x *DeclineInvitationResponse) GetSlice() *Slice

func (*DeclineInvitationResponse) ProtoMessage

func (*DeclineInvitationResponse) ProtoMessage()

func (*DeclineInvitationResponse) ProtoReflect

func (*DeclineInvitationResponse) Reset

func (x *DeclineInvitationResponse) Reset()

func (*DeclineInvitationResponse) String

func (x *DeclineInvitationResponse) String() string

type DeleteSliceRequest

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

func (*DeleteSliceRequest) Descriptor deprecated

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

Deprecated: Use DeleteSliceRequest.ProtoReflect.Descriptor instead.

func (*DeleteSliceRequest) GetSliceId

func (x *DeleteSliceRequest) GetSliceId() string

func (*DeleteSliceRequest) ProtoMessage

func (*DeleteSliceRequest) ProtoMessage()

func (*DeleteSliceRequest) ProtoReflect

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

func (*DeleteSliceRequest) Reset

func (x *DeleteSliceRequest) Reset()

func (*DeleteSliceRequest) String

func (x *DeleteSliceRequest) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetByIdRequest

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

func (*GetByIdRequest) Descriptor deprecated

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

Deprecated: Use GetByIdRequest.ProtoReflect.Descriptor instead.

func (*GetByIdRequest) GetId

func (x *GetByIdRequest) GetId() string

func (*GetByIdRequest) ProtoMessage

func (*GetByIdRequest) ProtoMessage()

func (*GetByIdRequest) ProtoReflect

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

func (*GetByIdRequest) Reset

func (x *GetByIdRequest) Reset()

func (*GetByIdRequest) String

func (x *GetByIdRequest) String() string

type GetByIdResponse

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

func (*GetByIdResponse) Descriptor deprecated

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

Deprecated: Use GetByIdResponse.ProtoReflect.Descriptor instead.

func (*GetByIdResponse) GetSlice

func (x *GetByIdResponse) GetSlice() *Slice

func (*GetByIdResponse) ProtoMessage

func (*GetByIdResponse) ProtoMessage()

func (*GetByIdResponse) ProtoReflect

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

func (*GetByIdResponse) Reset

func (x *GetByIdResponse) Reset()

func (*GetByIdResponse) String

func (x *GetByIdResponse) String() string

type GetMembersRequest

type GetMembersRequest struct {
	SliceId string        `protobuf:"bytes,1,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	Cursor  *PageCursor   `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Roles   []Member_Role `protobuf:"varint,3,rep,packed,name=roles,proto3,enum=slice_api.v1.Member_Role" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMembersRequest) Descriptor deprecated

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

Deprecated: Use GetMembersRequest.ProtoReflect.Descriptor instead.

func (*GetMembersRequest) GetCursor

func (x *GetMembersRequest) GetCursor() *PageCursor

func (*GetMembersRequest) GetRoles

func (x *GetMembersRequest) GetRoles() []Member_Role

func (*GetMembersRequest) GetSliceId

func (x *GetMembersRequest) GetSliceId() string

func (*GetMembersRequest) ProtoMessage

func (*GetMembersRequest) ProtoMessage()

func (*GetMembersRequest) ProtoReflect

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

func (*GetMembersRequest) Reset

func (x *GetMembersRequest) Reset()

func (*GetMembersRequest) String

func (x *GetMembersRequest) String() string

type GetMembersResponse

type GetMembersResponse struct {
	Members  []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	PageInfo *PageInfo `protobuf:"bytes,2,opt,name=pageInfo,proto3" json:"pageInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMembersResponse) Descriptor deprecated

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

Deprecated: Use GetMembersResponse.ProtoReflect.Descriptor instead.

func (*GetMembersResponse) GetMembers

func (x *GetMembersResponse) GetMembers() []*Member

func (*GetMembersResponse) GetPageInfo

func (x *GetMembersResponse) GetPageInfo() *PageInfo

func (*GetMembersResponse) ProtoMessage

func (*GetMembersResponse) ProtoMessage()

func (*GetMembersResponse) ProtoReflect

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

func (*GetMembersResponse) Reset

func (x *GetMembersResponse) Reset()

func (*GetMembersResponse) String

func (x *GetMembersResponse) String() string

type InviteUsersToSliceRequest

type InviteUsersToSliceRequest struct {
	UserIds   []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"`
	SliceId   string   `protobuf:"bytes,2,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	InviteAll bool     `protobuf:"varint,3,opt,name=inviteAll,proto3" json:"inviteAll,omitempty"`
	// contains filtered or unexported fields
}

func (*InviteUsersToSliceRequest) Descriptor deprecated

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

Deprecated: Use InviteUsersToSliceRequest.ProtoReflect.Descriptor instead.

func (*InviteUsersToSliceRequest) GetInviteAll

func (x *InviteUsersToSliceRequest) GetInviteAll() bool

func (*InviteUsersToSliceRequest) GetSliceId

func (x *InviteUsersToSliceRequest) GetSliceId() string

func (*InviteUsersToSliceRequest) GetUserIds

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

func (*InviteUsersToSliceRequest) ProtoMessage

func (*InviteUsersToSliceRequest) ProtoMessage()

func (*InviteUsersToSliceRequest) ProtoReflect

func (*InviteUsersToSliceRequest) Reset

func (x *InviteUsersToSliceRequest) Reset()

func (*InviteUsersToSliceRequest) String

func (x *InviteUsersToSliceRequest) String() string

type InviteUsersToSliceResponse

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

func (*InviteUsersToSliceResponse) Descriptor deprecated

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

Deprecated: Use InviteUsersToSliceResponse.ProtoReflect.Descriptor instead.

func (*InviteUsersToSliceResponse) GetSlice

func (x *InviteUsersToSliceResponse) GetSlice() *Slice

func (*InviteUsersToSliceResponse) ProtoMessage

func (*InviteUsersToSliceResponse) ProtoMessage()

func (*InviteUsersToSliceResponse) ProtoReflect

func (*InviteUsersToSliceResponse) Reset

func (x *InviteUsersToSliceResponse) Reset()

func (*InviteUsersToSliceResponse) String

func (x *InviteUsersToSliceResponse) String() string

type JoinRequest

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

func (*JoinRequest) Descriptor deprecated

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

Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.

func (*JoinRequest) GetSliceId

func (x *JoinRequest) GetSliceId() string

func (*JoinRequest) ProtoMessage

func (*JoinRequest) ProtoMessage()

func (*JoinRequest) ProtoReflect

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

func (*JoinRequest) Reset

func (x *JoinRequest) Reset()

func (*JoinRequest) String

func (x *JoinRequest) String() string

type LeaveRequest

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

func (*LeaveRequest) Descriptor deprecated

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

Deprecated: Use LeaveRequest.ProtoReflect.Descriptor instead.

func (*LeaveRequest) GetSliceId

func (x *LeaveRequest) GetSliceId() string

func (*LeaveRequest) ProtoMessage

func (*LeaveRequest) ProtoMessage()

func (*LeaveRequest) ProtoReflect

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

func (*LeaveRequest) Reset

func (x *LeaveRequest) Reset()

func (*LeaveRequest) String

func (x *LeaveRequest) String() string

type Member

type Member struct {
	SliceId  string      `protobuf:"bytes,1,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	UserId   string      `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Role     Member_Role `protobuf:"varint,3,opt,name=role,proto3,enum=slice_api.v1.Member_Role" json:"role,omitempty"`
	User     *v1.User    `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	JoinedAt string      `protobuf:"bytes,5,opt,name=joinedAt,proto3" json:"joinedAt,omitempty"`
	BanedAt  string      `protobuf:"bytes,6,opt,name=banedAt,proto3" json:"banedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Member) Descriptor deprecated

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

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetBanedAt

func (x *Member) GetBanedAt() string

func (*Member) GetJoinedAt

func (x *Member) GetJoinedAt() string

func (*Member) GetRole

func (x *Member) GetRole() Member_Role

func (*Member) GetSliceId

func (x *Member) GetSliceId() string

func (*Member) GetUser

func (x *Member) GetUser() *v1.User

func (*Member) GetUserId

func (x *Member) GetUserId() string

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

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

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

type Member_Role

type Member_Role int32
const (
	Member_None    Member_Role = 0
	Member_Pending Member_Role = 1
	Member_Member  Member_Role = 2
	Member_Owner   Member_Role = 3
)

func (Member_Role) Descriptor

func (Member_Role) Enum

func (x Member_Role) Enum() *Member_Role

func (Member_Role) EnumDescriptor deprecated

func (Member_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Member_Role.Descriptor instead.

func (Member_Role) Number

func (x Member_Role) Number() protoreflect.EnumNumber

func (Member_Role) String

func (x Member_Role) String() string

func (Member_Role) Type

type PageCursor

type PageCursor struct {
	LastId string  `protobuf:"bytes,1,opt,name=lastId,proto3" json:"lastId,omitempty"`
	Limit  uint32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Dir    PageDir `protobuf:"varint,3,opt,name=dir,proto3,enum=slice_api.v1.PageDir" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

func (*PageCursor) Descriptor deprecated

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

Deprecated: Use PageCursor.ProtoReflect.Descriptor instead.

func (*PageCursor) GetDir

func (x *PageCursor) GetDir() PageDir

func (*PageCursor) GetLastId

func (x *PageCursor) GetLastId() string

func (*PageCursor) GetLimit

func (x *PageCursor) GetLimit() uint32

func (*PageCursor) ProtoMessage

func (*PageCursor) ProtoMessage()

func (*PageCursor) ProtoReflect

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

func (*PageCursor) Reset

func (x *PageCursor) Reset()

func (*PageCursor) String

func (x *PageCursor) String() string

type PageDir

type PageDir int32
const (
	PageDir_Asc  PageDir = 0
	PageDir_Desc PageDir = 1
)

func (PageDir) Descriptor

func (PageDir) Descriptor() protoreflect.EnumDescriptor

func (PageDir) Enum

func (x PageDir) Enum() *PageDir

func (PageDir) EnumDescriptor deprecated

func (PageDir) EnumDescriptor() ([]byte, []int)

Deprecated: Use PageDir.Descriptor instead.

func (PageDir) Number

func (x PageDir) Number() protoreflect.EnumNumber

func (PageDir) String

func (x PageDir) String() string

func (PageDir) Type

func (PageDir) Type() protoreflect.EnumType

type PageInfo

type PageInfo struct {
	FirstId *string `protobuf:"bytes,1,opt,name=firstId,proto3,oneof" json:"firstId,omitempty"`
	LastId  *string `protobuf:"bytes,2,opt,name=lastId,proto3,oneof" json:"lastId,omitempty"`
	HasPrev bool    `protobuf:"varint,3,opt,name=hasPrev,proto3" json:"hasPrev,omitempty"`
	HasNext bool    `protobuf:"varint,4,opt,name=hasNext,proto3" json:"hasNext,omitempty"`
	Length  uint32  `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

func (*PageInfo) Descriptor deprecated

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

Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.

func (*PageInfo) GetFirstId

func (x *PageInfo) GetFirstId() string

func (*PageInfo) GetHasNext

func (x *PageInfo) GetHasNext() bool

func (*PageInfo) GetHasPrev

func (x *PageInfo) GetHasPrev() bool

func (*PageInfo) GetLastId

func (x *PageInfo) GetLastId() string

func (*PageInfo) GetLength

func (x *PageInfo) GetLength() uint32

func (*PageInfo) ProtoMessage

func (*PageInfo) ProtoMessage()

func (*PageInfo) ProtoReflect

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

func (*PageInfo) Reset

func (x *PageInfo) Reset()

func (*PageInfo) String

func (x *PageInfo) String() string

type RemoveUsersFromSliceRequest

type RemoveUsersFromSliceRequest struct {
	UserIds []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"`
	SliceId string   `protobuf:"bytes,2,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveUsersFromSliceRequest) Descriptor deprecated

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

Deprecated: Use RemoveUsersFromSliceRequest.ProtoReflect.Descriptor instead.

func (*RemoveUsersFromSliceRequest) GetSliceId

func (x *RemoveUsersFromSliceRequest) GetSliceId() string

func (*RemoveUsersFromSliceRequest) GetUserIds

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

func (*RemoveUsersFromSliceRequest) ProtoMessage

func (*RemoveUsersFromSliceRequest) ProtoMessage()

func (*RemoveUsersFromSliceRequest) ProtoReflect

func (*RemoveUsersFromSliceRequest) Reset

func (x *RemoveUsersFromSliceRequest) Reset()

func (*RemoveUsersFromSliceRequest) String

func (x *RemoveUsersFromSliceRequest) String() string

type RemoveUsersFromSliceResponse

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

func (*RemoveUsersFromSliceResponse) Descriptor deprecated

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

Deprecated: Use RemoveUsersFromSliceResponse.ProtoReflect.Descriptor instead.

func (*RemoveUsersFromSliceResponse) GetSlice

func (x *RemoveUsersFromSliceResponse) GetSlice() *Slice

func (*RemoveUsersFromSliceResponse) ProtoMessage

func (*RemoveUsersFromSliceResponse) ProtoMessage()

func (*RemoveUsersFromSliceResponse) ProtoReflect

func (*RemoveUsersFromSliceResponse) Reset

func (x *RemoveUsersFromSliceResponse) Reset()

func (*RemoveUsersFromSliceResponse) String

type Slice

type Slice struct {
	Id        string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data      *Slice_Data     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Counters  *Slice_Counters `protobuf:"bytes,3,opt,name=counters,proto3" json:"counters,omitempty"`
	ShareLink string          `protobuf:"bytes,4,opt,name=shareLink,proto3" json:"shareLink,omitempty"`
	// contains filtered or unexported fields
}

func (*Slice) Descriptor deprecated

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

Deprecated: Use Slice.ProtoReflect.Descriptor instead.

func (*Slice) GetCounters

func (x *Slice) GetCounters() *Slice_Counters

func (*Slice) GetData

func (x *Slice) GetData() *Slice_Data

func (*Slice) GetId

func (x *Slice) GetId() string
func (x *Slice) GetShareLink() string

func (*Slice) ProtoMessage

func (*Slice) ProtoMessage()

func (*Slice) ProtoReflect

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

func (*Slice) Reset

func (x *Slice) Reset()

func (*Slice) String

func (x *Slice) String() string

type SliceAPIClient

type SliceAPIClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	SlicesConnection(ctx context.Context, in *SlicesConnectionRequest, opts ...grpc.CallOption) (*SlicesConnectionResponse, error)
	DeleteSlice(ctx context.Context, in *DeleteSliceRequest, opts ...grpc.CallOption) (*Empty, error)
	GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error)
	Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*Empty, error)
	Leave(ctx context.Context, in *LeaveRequest, opts ...grpc.CallOption) (*Empty, error)
	AcceptInvitation(ctx context.Context, in *AcceptInvitationRequest, opts ...grpc.CallOption) (*AcceptInvitationResponse, error)
	DeclineInvitation(ctx context.Context, in *DeclineInvitationRequest, opts ...grpc.CallOption) (*DeclineInvitationResponse, error)
	// invitation rpc
	InviteUsersToSlice(ctx context.Context, in *InviteUsersToSliceRequest, opts ...grpc.CallOption) (*InviteUsersToSliceResponse, error)
	RemoveUsersFromSlice(ctx context.Context, in *RemoveUsersFromSliceRequest, opts ...grpc.CallOption) (*RemoveUsersFromSliceResponse, error)
	GetByID(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error)
}

SliceAPIClient is the client API for SliceAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSliceAPIClient

func NewSliceAPIClient(cc grpc.ClientConnInterface) SliceAPIClient

type SliceAPIServer

SliceAPIServer is the server API for SliceAPI service. All implementations must embed UnimplementedSliceAPIServer for forward compatibility

type SliceInput

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

func (*SliceInput) Descriptor deprecated

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

Deprecated: Use SliceInput.ProtoReflect.Descriptor instead.

func (*SliceInput) GetData

func (x *SliceInput) GetData() *Slice_Data

func (*SliceInput) ProtoMessage

func (*SliceInput) ProtoMessage()

func (*SliceInput) ProtoReflect

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

func (*SliceInput) Reset

func (x *SliceInput) Reset()

func (*SliceInput) String

func (x *SliceInput) String() string

type Slice_Counters

type Slice_Counters struct {
	Members int64 `protobuf:"varint,1,opt,name=members,proto3" json:"members,omitempty"`
	Rooms   int64 `protobuf:"varint,2,opt,name=rooms,proto3" json:"rooms,omitempty"`
	// contains filtered or unexported fields
}

func (*Slice_Counters) Descriptor deprecated

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

Deprecated: Use Slice_Counters.ProtoReflect.Descriptor instead.

func (*Slice_Counters) GetMembers

func (x *Slice_Counters) GetMembers() int64

func (*Slice_Counters) GetRooms

func (x *Slice_Counters) GetRooms() int64

func (*Slice_Counters) ProtoMessage

func (*Slice_Counters) ProtoMessage()

func (*Slice_Counters) ProtoReflect

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

func (*Slice_Counters) Reset

func (x *Slice_Counters) Reset()

func (*Slice_Counters) String

func (x *Slice_Counters) String() string

type Slice_Data

type Slice_Data struct {
	Name              string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description       string      `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	ImageUrl          string      `protobuf:"bytes,4,opt,name=imageUrl,proto3" json:"imageUrl,omitempty"`
	Private           bool        `protobuf:"varint,5,opt,name=private,proto3" json:"private,omitempty"`
	Hidden            bool        `protobuf:"varint,6,opt,name=hidden,proto3" json:"hidden,omitempty"`
	CircleId          string      `protobuf:"bytes,7,opt,name=circleId,proto3" json:"circleId,omitempty"`
	OwnerId           string      `protobuf:"bytes,8,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	ChatId            string      `protobuf:"bytes,9,opt,name=chatId,proto3" json:"chatId,omitempty"`
	Role              Member_Role `protobuf:"varint,10,opt,name=role,proto3,enum=slice_api.v1.Member_Role" json:"role,omitempty"`
	Rules             string      `protobuf:"bytes,11,opt,name=rules,proto3" json:"rules,omitempty"`
	IJoined           bool        `protobuf:"varint,12,opt,name=iJoined,proto3" json:"iJoined,omitempty"`
	ImageId           string      `protobuf:"bytes,13,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	ImageThumbnailUrl string      `protobuf:"bytes,14,opt,name=image_thumbnail_url,json=imageThumbnailUrl,proto3" json:"image_thumbnail_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Slice_Data) Descriptor deprecated

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

Deprecated: Use Slice_Data.ProtoReflect.Descriptor instead.

func (*Slice_Data) GetChatId

func (x *Slice_Data) GetChatId() string

func (*Slice_Data) GetCircleId

func (x *Slice_Data) GetCircleId() string

func (*Slice_Data) GetDescription

func (x *Slice_Data) GetDescription() string

func (*Slice_Data) GetHidden

func (x *Slice_Data) GetHidden() bool

func (*Slice_Data) GetIJoined

func (x *Slice_Data) GetIJoined() bool

func (*Slice_Data) GetImageId added in v0.2.142

func (x *Slice_Data) GetImageId() string

func (*Slice_Data) GetImageThumbnailUrl added in v0.2.142

func (x *Slice_Data) GetImageThumbnailUrl() string

func (*Slice_Data) GetImageUrl

func (x *Slice_Data) GetImageUrl() string

func (*Slice_Data) GetName

func (x *Slice_Data) GetName() string

func (*Slice_Data) GetOwnerId

func (x *Slice_Data) GetOwnerId() string

func (*Slice_Data) GetPrivate

func (x *Slice_Data) GetPrivate() bool

func (*Slice_Data) GetRole

func (x *Slice_Data) GetRole() Member_Role

func (*Slice_Data) GetRules

func (x *Slice_Data) GetRules() string

func (*Slice_Data) ProtoMessage

func (*Slice_Data) ProtoMessage()

func (*Slice_Data) ProtoReflect

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

func (*Slice_Data) Reset

func (x *Slice_Data) Reset()

func (*Slice_Data) String

func (x *Slice_Data) String() string

type SlicesConnectionRequest

type SlicesConnectionRequest struct {
	CircleId string      `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"`
	Cursor   *PageCursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*SlicesConnectionRequest) Descriptor deprecated

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

Deprecated: Use SlicesConnectionRequest.ProtoReflect.Descriptor instead.

func (*SlicesConnectionRequest) GetCircleId

func (x *SlicesConnectionRequest) GetCircleId() string

func (*SlicesConnectionRequest) GetCursor

func (x *SlicesConnectionRequest) GetCursor() *PageCursor

func (*SlicesConnectionRequest) ProtoMessage

func (*SlicesConnectionRequest) ProtoMessage()

func (*SlicesConnectionRequest) ProtoReflect

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

func (*SlicesConnectionRequest) Reset

func (x *SlicesConnectionRequest) Reset()

func (*SlicesConnectionRequest) String

func (x *SlicesConnectionRequest) String() string

type SlicesConnectionResponse

type SlicesConnectionResponse struct {
	Slices   []*Slice  `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
	PageInfo *PageInfo `protobuf:"bytes,2,opt,name=pageInfo,proto3" json:"pageInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*SlicesConnectionResponse) Descriptor deprecated

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

Deprecated: Use SlicesConnectionResponse.ProtoReflect.Descriptor instead.

func (*SlicesConnectionResponse) GetPageInfo

func (x *SlicesConnectionResponse) GetPageInfo() *PageInfo

func (*SlicesConnectionResponse) GetSlices

func (x *SlicesConnectionResponse) GetSlices() []*Slice

func (*SlicesConnectionResponse) ProtoMessage

func (*SlicesConnectionResponse) ProtoMessage()

func (*SlicesConnectionResponse) ProtoReflect

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

func (*SlicesConnectionResponse) Reset

func (x *SlicesConnectionResponse) Reset()

func (*SlicesConnectionResponse) String

func (x *SlicesConnectionResponse) String() string

type UnimplementedSliceAPIServer

type UnimplementedSliceAPIServer struct {
}

UnimplementedSliceAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedSliceAPIServer) AcceptInvitation

func (UnimplementedSliceAPIServer) Create

func (UnimplementedSliceAPIServer) DeclineInvitation

func (UnimplementedSliceAPIServer) DeleteSlice

func (UnimplementedSliceAPIServer) GetByID

func (UnimplementedSliceAPIServer) GetMembers

func (UnimplementedSliceAPIServer) Join

func (UnimplementedSliceAPIServer) Leave

func (UnimplementedSliceAPIServer) SlicesConnection

func (UnimplementedSliceAPIServer) Update

type UnsafeSliceAPIServer

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

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

type UpdateRequest

type UpdateRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Deprecated: Do not use.
	Input       *SliceInput `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	Name        string      `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Rules       string      `protobuf:"bytes,4,opt,name=rules,proto3" json:"rules,omitempty"`
	ImageId     string      `protobuf:"bytes,5,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	Description string      `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Hidden      bool        `protobuf:"varint,7,opt,name=hidden,proto3" json:"hidden,omitempty"`
	Private     bool        `protobuf:"varint,8,opt,name=private,proto3" json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetDescription added in v0.2.138

func (x *UpdateRequest) GetDescription() string

func (*UpdateRequest) GetHidden added in v0.2.138

func (x *UpdateRequest) GetHidden() bool

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) GetImageId added in v0.2.138

func (x *UpdateRequest) GetImageId() string

func (*UpdateRequest) GetInput deprecated

func (x *UpdateRequest) GetInput() *SliceInput

Deprecated: Do not use.

func (*UpdateRequest) GetName added in v0.2.138

func (x *UpdateRequest) GetName() string

func (*UpdateRequest) GetPrivate added in v0.2.138

func (x *UpdateRequest) GetPrivate() bool

func (*UpdateRequest) GetRules added in v0.2.138

func (x *UpdateRequest) GetRules() string

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 {
	Slice *Slice `protobuf:"bytes,1,opt,name=slice,proto3" json:"slice,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetSlice

func (x *UpdateResponse) GetSlice() *Slice

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

Jump to

Keyboard shortcuts

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