lists

package
v0.0.0-...-c02468d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_lists_proto protoreflect.FileDescriptor
View Source
var ListService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "main.ListService",
	HandlerType: (*ListServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "createCustomList",
			Handler:    _ListService_CreateCustomList_Handler,
		},
		{
			MethodName: "addUserToCustomList",
			Handler:    _ListService_AddUserToCustomList_Handler,
		},
		{
			MethodName: "removeUserFromCustomList",
			Handler:    _ListService_RemoveUserFromCustomList_Handler,
		},
		{
			MethodName: "getListUsers",
			Handler:    _ListService_GetListUsers_Handler,
		},
		{
			MethodName: "deleteCustomList",
			Handler:    _ListService_DeleteCustomList_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "getLists",
			Handler:       _ListService_GetLists_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "getUsersTwitsFromCustomList",
			Handler:       _ListService_GetUsersTwitsFromCustomList_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "lists.proto",
}

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

Functions

func RegisterListServiceServer

func RegisterListServiceServer(s grpc.ServiceRegistrar, srv ListServiceServer)

Types

type ListName

type ListName struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CreatorId string `protobuf:"bytes,2,opt,name=creatorId,proto3" json:"creatorId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListName) Descriptor deprecated

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

Deprecated: Use ListName.ProtoReflect.Descriptor instead.

func (*ListName) GetCreatorId

func (x *ListName) GetCreatorId() string

func (*ListName) GetName

func (x *ListName) GetName() string

func (*ListName) ProtoMessage

func (*ListName) ProtoMessage()

func (*ListName) ProtoReflect

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

func (*ListName) Reset

func (x *ListName) Reset()

func (*ListName) String

func (x *ListName) String() string

type ListResponse

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

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetValue

func (x *ListResponse) GetValue() string

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 ListServiceClient

type ListServiceClient interface {
	GetLists(ctx context.Context, in *UsersUUID, opts ...grpc.CallOption) (ListService_GetListsClient, error)
	CreateCustomList(ctx context.Context, in *ListName, opts ...grpc.CallOption) (*ListResponse, error)
	AddUserToCustomList(ctx context.Context, in *UserWithList, opts ...grpc.CallOption) (*ListResponse, error)
	RemoveUserFromCustomList(ctx context.Context, in *UserWithList, opts ...grpc.CallOption) (*ListResponse, error)
	GetListUsers(ctx context.Context, in *ListUUID, opts ...grpc.CallOption) (*ListResponse, error)
	GetUsersTwitsFromCustomList(ctx context.Context, in *ListUUID, opts ...grpc.CallOption) (ListService_GetUsersTwitsFromCustomListClient, error)
	DeleteCustomList(ctx context.Context, in *ListUUID, opts ...grpc.CallOption) (*ListResponse, error)
}

ListServiceClient is the client API for ListService 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 ListServiceServer

type ListServiceServer interface {
	GetLists(*UsersUUID, ListService_GetListsServer) error
	CreateCustomList(context.Context, *ListName) (*ListResponse, error)
	AddUserToCustomList(context.Context, *UserWithList) (*ListResponse, error)
	RemoveUserFromCustomList(context.Context, *UserWithList) (*ListResponse, error)
	GetListUsers(context.Context, *ListUUID) (*ListResponse, error)
	GetUsersTwitsFromCustomList(*ListUUID, ListService_GetUsersTwitsFromCustomListServer) error
	DeleteCustomList(context.Context, *ListUUID) (*ListResponse, error)
	// contains filtered or unexported methods
}

ListServiceServer is the server API for ListService service. All implementations must embed UnimplementedListServiceServer for forward compatibility

type ListService_GetListsClient

type ListService_GetListsClient interface {
	Recv() (*ListName, error)
	grpc.ClientStream
}

type ListService_GetListsServer

type ListService_GetListsServer interface {
	Send(*ListName) error
	grpc.ServerStream
}

type ListService_GetUsersTwitsFromCustomListClient

type ListService_GetUsersTwitsFromCustomListClient interface {
	Recv() (*ListTwit, error)
	grpc.ClientStream
}

type ListService_GetUsersTwitsFromCustomListServer

type ListService_GetUsersTwitsFromCustomListServer interface {
	Send(*ListTwit) error
	grpc.ServerStream
}

type ListTwit

type ListTwit struct {
	Id       *ListUUID              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Date     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	Text     string                 `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	Nickname string                 `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTwit) Descriptor deprecated

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

Deprecated: Use ListTwit.ProtoReflect.Descriptor instead.

func (*ListTwit) GetDate

func (x *ListTwit) GetDate() *timestamppb.Timestamp

func (*ListTwit) GetId

func (x *ListTwit) GetId() *ListUUID

func (*ListTwit) GetNickname

func (x *ListTwit) GetNickname() string

func (*ListTwit) GetText

func (x *ListTwit) GetText() string

func (*ListTwit) ProtoMessage

func (*ListTwit) ProtoMessage()

func (*ListTwit) ProtoReflect

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

func (*ListTwit) Reset

func (x *ListTwit) Reset()

func (*ListTwit) String

func (x *ListTwit) String() string

type ListUUID

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

func (*ListUUID) Descriptor deprecated

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

Deprecated: Use ListUUID.ProtoReflect.Descriptor instead.

func (*ListUUID) GetValue

func (x *ListUUID) GetValue() string

func (*ListUUID) ProtoMessage

func (*ListUUID) ProtoMessage()

func (*ListUUID) ProtoReflect

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

func (*ListUUID) Reset

func (x *ListUUID) Reset()

func (*ListUUID) String

func (x *ListUUID) String() string

type UnimplementedListServiceServer

type UnimplementedListServiceServer struct {
}

UnimplementedListServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedListServiceServer) AddUserToCustomList

func (UnimplementedListServiceServer) CreateCustomList

func (UnimplementedListServiceServer) DeleteCustomList

func (UnimplementedListServiceServer) GetListUsers

func (UnimplementedListServiceServer) GetLists

func (UnimplementedListServiceServer) GetUsersTwitsFromCustomList

func (UnimplementedListServiceServer) RemoveUserFromCustomList

type UnsafeListServiceServer

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

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

type UserWithList

type UserWithList struct {
	ListUUID         string `protobuf:"bytes,1,opt,name=listUUID,proto3" json:"listUUID,omitempty"`
	UserWithListUUID string `protobuf:"bytes,2,opt,name=UserWithListUUID,proto3" json:"UserWithListUUID,omitempty"`
	// contains filtered or unexported fields
}

func (*UserWithList) Descriptor deprecated

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

Deprecated: Use UserWithList.ProtoReflect.Descriptor instead.

func (*UserWithList) GetListUUID

func (x *UserWithList) GetListUUID() string

func (*UserWithList) GetUserWithListUUID

func (x *UserWithList) GetUserWithListUUID() string

func (*UserWithList) ProtoMessage

func (*UserWithList) ProtoMessage()

func (*UserWithList) ProtoReflect

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

func (*UserWithList) Reset

func (x *UserWithList) Reset()

func (*UserWithList) String

func (x *UserWithList) String() string

type UsersUUID

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

func (*UsersUUID) Descriptor deprecated

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

Deprecated: Use UsersUUID.ProtoReflect.Descriptor instead.

func (*UsersUUID) GetValue

func (x *UsersUUID) GetValue() string

func (*UsersUUID) ProtoMessage

func (*UsersUUID) ProtoMessage()

func (*UsersUUID) ProtoReflect

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

func (*UsersUUID) Reset

func (x *UsersUUID) Reset()

func (*UsersUUID) String

func (x *UsersUUID) String() string

Jump to

Keyboard shortcuts

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