Documentation ¶
Index ¶
- func RegisterListServiceServer(s *grpc.Server, srv ListServiceServer)
- type List
- func (*List) Descriptor() ([]byte, []int)
- func (m *List) GetCreatedAt() *timestamp.Timestamp
- func (m *List) GetDeletedAt() *timestamp.Timestamp
- func (m *List) GetID() uint32
- func (m *List) GetIndex() uint32
- func (m *List) GetName() string
- func (m *List) GetTasks() []*task.Task
- func (m *List) GetUpdatedAt() *timestamp.Timestamp
- func (m *List) GetUserID() uint32
- func (*List) ProtoMessage()
- func (m *List) Reset()
- func (m *List) String() string
- func (m *List) XXX_DiscardUnknown()
- func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *List) XXX_Merge(src proto.Message)
- func (m *List) XXX_Size() int
- func (m *List) XXX_Unmarshal(b []byte) error
- type ListServiceClient
- type ListServiceServer
- type UserListsRepsonse
- func (*UserListsRepsonse) Descriptor() ([]byte, []int)
- func (m *UserListsRepsonse) GetLists() []*List
- func (*UserListsRepsonse) ProtoMessage()
- func (m *UserListsRepsonse) Reset()
- func (m *UserListsRepsonse) String() string
- func (m *UserListsRepsonse) XXX_DiscardUnknown()
- func (m *UserListsRepsonse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserListsRepsonse) XXX_Merge(src proto.Message)
- func (m *UserListsRepsonse) XXX_Size() int
- func (m *UserListsRepsonse) XXX_Unmarshal(b []byte) error
- type UserListsRequest
- func (*UserListsRequest) Descriptor() ([]byte, []int)
- func (*UserListsRequest) ProtoMessage()
- func (m *UserListsRequest) Reset()
- func (m *UserListsRequest) String() string
- func (m *UserListsRequest) XXX_DiscardUnknown()
- func (m *UserListsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserListsRequest) XXX_Merge(src proto.Message)
- func (m *UserListsRequest) XXX_Size() int
- func (m *UserListsRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterListServiceServer ¶
func RegisterListServiceServer(s *grpc.Server, srv ListServiceServer)
Types ¶
type List ¶
type List struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` UserID uint32 `protobuf:"varint,4,opt,name=UserID,proto3" json:"UserID,omitempty"` Index uint32 `protobuf:"varint,5,opt,name=Index,proto3" json:"Index,omitempty"` Tasks []*task.Task `protobuf:"bytes,6,rep,name=Tasks,proto3" json:"Tasks,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*List) Descriptor ¶
func (*List) GetCreatedAt ¶
func (*List) GetDeletedAt ¶
func (*List) GetUpdatedAt ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) XXX_DiscardUnknown ¶
func (m *List) XXX_DiscardUnknown()
func (*List) XXX_Unmarshal ¶
type ListServiceClient ¶
type ListServiceClient interface { GetByUser(ctx context.Context, in *UserListsRequest, opts ...grpc.CallOption) (*UserListsRepsonse, error) Create(ctx context.Context, in *List, opts ...grpc.CallOption) (*List, error) Update(ctx context.Context, in *List, opts ...grpc.CallOption) (*List, error) Delete(ctx context.Context, in *List, opts ...grpc.CallOption) (*List, error) }
ListServiceClient is the client API for ListService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewListServiceClient ¶
func NewListServiceClient(cc *grpc.ClientConn) ListServiceClient
type ListServiceServer ¶
type ListServiceServer interface { GetByUser(context.Context, *UserListsRequest) (*UserListsRepsonse, error) Create(context.Context, *List) (*List, error) Update(context.Context, *List) (*List, error) Delete(context.Context, *List) (*List, error) }
ListServiceServer is the server API for ListService service.
type UserListsRepsonse ¶
type UserListsRepsonse struct { Lists []*List `protobuf:"bytes,1,rep,name=Lists,proto3" json:"Lists,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserListsRepsonse) Descriptor ¶
func (*UserListsRepsonse) Descriptor() ([]byte, []int)
func (*UserListsRepsonse) GetLists ¶
func (m *UserListsRepsonse) GetLists() []*List
func (*UserListsRepsonse) ProtoMessage ¶
func (*UserListsRepsonse) ProtoMessage()
func (*UserListsRepsonse) Reset ¶
func (m *UserListsRepsonse) Reset()
func (*UserListsRepsonse) String ¶
func (m *UserListsRepsonse) String() string
func (*UserListsRepsonse) XXX_DiscardUnknown ¶
func (m *UserListsRepsonse) XXX_DiscardUnknown()
func (*UserListsRepsonse) XXX_Marshal ¶
func (m *UserListsRepsonse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListsRepsonse) XXX_Merge ¶
func (m *UserListsRepsonse) XXX_Merge(src proto.Message)
func (*UserListsRepsonse) XXX_Size ¶
func (m *UserListsRepsonse) XXX_Size() int
func (*UserListsRepsonse) XXX_Unmarshal ¶
func (m *UserListsRepsonse) XXX_Unmarshal(b []byte) error
type UserListsRequest ¶
type UserListsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserListsRequest) Descriptor ¶
func (*UserListsRequest) Descriptor() ([]byte, []int)
func (*UserListsRequest) ProtoMessage ¶
func (*UserListsRequest) ProtoMessage()
func (*UserListsRequest) Reset ¶
func (m *UserListsRequest) Reset()
func (*UserListsRequest) String ¶
func (m *UserListsRequest) String() string
func (*UserListsRequest) XXX_DiscardUnknown ¶
func (m *UserListsRequest) XXX_DiscardUnknown()
func (*UserListsRequest) XXX_Marshal ¶
func (m *UserListsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListsRequest) XXX_Merge ¶
func (m *UserListsRequest) XXX_Merge(src proto.Message)
func (*UserListsRequest) XXX_Size ¶
func (m *UserListsRequest) XXX_Size() int
func (*UserListsRequest) XXX_Unmarshal ¶
func (m *UserListsRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.