list

package
v0.0.0-...-29554df Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*List) GetCreatedAt

func (m *List) GetCreatedAt() *timestamp.Timestamp

func (*List) GetDeletedAt

func (m *List) GetDeletedAt() *timestamp.Timestamp

func (*List) GetID

func (m *List) GetID() uint32

func (*List) GetIndex

func (m *List) GetIndex() uint32

func (*List) GetName

func (m *List) GetName() string

func (*List) GetTasks

func (m *List) GetTasks() []*task.Task

func (*List) GetUpdatedAt

func (m *List) GetUpdatedAt() *timestamp.Timestamp

func (*List) GetUserID

func (m *List) GetUserID() uint32

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) Reset

func (m *List) Reset()

func (*List) String

func (m *List) String() string

func (*List) XXX_DiscardUnknown

func (m *List) XXX_DiscardUnknown()

func (*List) XXX_Marshal

func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*List) XXX_Merge

func (m *List) XXX_Merge(src proto.Message)

func (*List) XXX_Size

func (m *List) XXX_Size() int

func (*List) XXX_Unmarshal

func (m *List) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

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