pb

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTaskServiceServer

func RegisterTaskServiceServer(s *grpc.Server, srv TaskServiceServer)

Types

type DeleteTaskRequest

type DeleteTaskRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTaskRequest) Descriptor

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

func (*DeleteTaskRequest) GetId

func (m *DeleteTaskRequest) GetId() string

func (*DeleteTaskRequest) ProtoMessage

func (*DeleteTaskRequest) ProtoMessage()

func (*DeleteTaskRequest) Reset

func (m *DeleteTaskRequest) Reset()

func (*DeleteTaskRequest) String

func (m *DeleteTaskRequest) String() string

func (*DeleteTaskRequest) XXX_DiscardUnknown

func (m *DeleteTaskRequest) XXX_DiscardUnknown()

func (*DeleteTaskRequest) XXX_Marshal

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

func (*DeleteTaskRequest) XXX_Merge

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

func (*DeleteTaskRequest) XXX_Size

func (m *DeleteTaskRequest) XXX_Size() int

func (*DeleteTaskRequest) XXX_Unmarshal

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

type DeleteTaskResponse

type DeleteTaskResponse struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Confirmation         int64    `protobuf:"varint,2,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTaskResponse) Descriptor

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

func (*DeleteTaskResponse) GetConfirmation

func (m *DeleteTaskResponse) GetConfirmation() int64

func (*DeleteTaskResponse) GetId

func (m *DeleteTaskResponse) GetId() string

func (*DeleteTaskResponse) ProtoMessage

func (*DeleteTaskResponse) ProtoMessage()

func (*DeleteTaskResponse) Reset

func (m *DeleteTaskResponse) Reset()

func (*DeleteTaskResponse) String

func (m *DeleteTaskResponse) String() string

func (*DeleteTaskResponse) XXX_DiscardUnknown

func (m *DeleteTaskResponse) XXX_DiscardUnknown()

func (*DeleteTaskResponse) XXX_Marshal

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

func (*DeleteTaskResponse) XXX_Merge

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

func (*DeleteTaskResponse) XXX_Size

func (m *DeleteTaskResponse) XXX_Size() int

func (*DeleteTaskResponse) XXX_Unmarshal

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

type GetMultipleTaskRequest

type GetMultipleTaskRequest struct {
	Skip                 uint64   `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Take                 uint64   `protobuf:"varint,2,opt,name=take,proto3" json:"take,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetMultipleTaskRequest) Descriptor

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

func (*GetMultipleTaskRequest) GetSkip

func (m *GetMultipleTaskRequest) GetSkip() uint64

func (*GetMultipleTaskRequest) GetTake

func (m *GetMultipleTaskRequest) GetTake() uint64

func (*GetMultipleTaskRequest) ProtoMessage

func (*GetMultipleTaskRequest) ProtoMessage()

func (*GetMultipleTaskRequest) Reset

func (m *GetMultipleTaskRequest) Reset()

func (*GetMultipleTaskRequest) String

func (m *GetMultipleTaskRequest) String() string

func (*GetMultipleTaskRequest) XXX_DiscardUnknown

func (m *GetMultipleTaskRequest) XXX_DiscardUnknown()

func (*GetMultipleTaskRequest) XXX_Marshal

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

func (*GetMultipleTaskRequest) XXX_Merge

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

func (*GetMultipleTaskRequest) XXX_Size

func (m *GetMultipleTaskRequest) XXX_Size() int

func (*GetMultipleTaskRequest) XXX_Unmarshal

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

type GetMultipleTaskResponse

type GetMultipleTaskResponse struct {
	Tasks                []*Task  `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
	Confirmation         int64    `protobuf:"varint,2,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetMultipleTaskResponse) Descriptor

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

func (*GetMultipleTaskResponse) GetConfirmation

func (m *GetMultipleTaskResponse) GetConfirmation() int64

func (*GetMultipleTaskResponse) GetTasks

func (m *GetMultipleTaskResponse) GetTasks() []*Task

func (*GetMultipleTaskResponse) ProtoMessage

func (*GetMultipleTaskResponse) ProtoMessage()

func (*GetMultipleTaskResponse) Reset

func (m *GetMultipleTaskResponse) Reset()

func (*GetMultipleTaskResponse) String

func (m *GetMultipleTaskResponse) String() string

func (*GetMultipleTaskResponse) XXX_DiscardUnknown

func (m *GetMultipleTaskResponse) XXX_DiscardUnknown()

func (*GetMultipleTaskResponse) XXX_Marshal

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

func (*GetMultipleTaskResponse) XXX_Merge

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

func (*GetMultipleTaskResponse) XXX_Size

func (m *GetMultipleTaskResponse) XXX_Size() int

func (*GetMultipleTaskResponse) XXX_Unmarshal

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

type GetTaskRequest

type GetTaskRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID               uint64   `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTaskRequest) Descriptor

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

func (*GetTaskRequest) GetId

func (m *GetTaskRequest) GetId() string

func (*GetTaskRequest) GetUserID

func (m *GetTaskRequest) GetUserID() uint64

func (*GetTaskRequest) ProtoMessage

func (*GetTaskRequest) ProtoMessage()

func (*GetTaskRequest) Reset

func (m *GetTaskRequest) Reset()

func (*GetTaskRequest) String

func (m *GetTaskRequest) String() string

func (*GetTaskRequest) XXX_DiscardUnknown

func (m *GetTaskRequest) XXX_DiscardUnknown()

func (*GetTaskRequest) XXX_Marshal

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

func (*GetTaskRequest) XXX_Merge

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

func (*GetTaskRequest) XXX_Size

func (m *GetTaskRequest) XXX_Size() int

func (*GetTaskRequest) XXX_Unmarshal

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

type GetTaskResponse

type GetTaskResponse struct {
	Task                 *Task    `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	Confirmation         int64    `protobuf:"varint,2,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTaskResponse) Descriptor

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

func (*GetTaskResponse) GetConfirmation

func (m *GetTaskResponse) GetConfirmation() int64

func (*GetTaskResponse) GetTask

func (m *GetTaskResponse) GetTask() *Task

func (*GetTaskResponse) ProtoMessage

func (*GetTaskResponse) ProtoMessage()

func (*GetTaskResponse) Reset

func (m *GetTaskResponse) Reset()

func (*GetTaskResponse) String

func (m *GetTaskResponse) String() string

func (*GetTaskResponse) XXX_DiscardUnknown

func (m *GetTaskResponse) XXX_DiscardUnknown()

func (*GetTaskResponse) XXX_Marshal

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

func (*GetTaskResponse) XXX_Merge

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

func (*GetTaskResponse) XXX_Size

func (m *GetTaskResponse) XXX_Size() int

func (*GetTaskResponse) XXX_Unmarshal

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

type PostTaskRequest

type PostTaskRequest struct {
	Text                 string               `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Time                 *timestamp.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	Timestamp            int64                `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PostTaskRequest) Descriptor

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

func (*PostTaskRequest) GetText

func (m *PostTaskRequest) GetText() string

func (*PostTaskRequest) GetTime

func (m *PostTaskRequest) GetTime() *timestamp.Timestamp

func (*PostTaskRequest) GetTimestamp

func (m *PostTaskRequest) GetTimestamp() int64

func (*PostTaskRequest) ProtoMessage

func (*PostTaskRequest) ProtoMessage()

func (*PostTaskRequest) Reset

func (m *PostTaskRequest) Reset()

func (*PostTaskRequest) String

func (m *PostTaskRequest) String() string

func (*PostTaskRequest) XXX_DiscardUnknown

func (m *PostTaskRequest) XXX_DiscardUnknown()

func (*PostTaskRequest) XXX_Marshal

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

func (*PostTaskRequest) XXX_Merge

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

func (*PostTaskRequest) XXX_Size

func (m *PostTaskRequest) XXX_Size() int

func (*PostTaskRequest) XXX_Unmarshal

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

type PostTaskResponse

type PostTaskResponse struct {
	Task                 string   `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	Confirmation         int64    `protobuf:"varint,2,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PostTaskResponse) Descriptor

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

func (*PostTaskResponse) GetConfirmation

func (m *PostTaskResponse) GetConfirmation() int64

func (*PostTaskResponse) GetTask

func (m *PostTaskResponse) GetTask() string

func (*PostTaskResponse) ProtoMessage

func (*PostTaskResponse) ProtoMessage()

func (*PostTaskResponse) Reset

func (m *PostTaskResponse) Reset()

func (*PostTaskResponse) String

func (m *PostTaskResponse) String() string

func (*PostTaskResponse) XXX_DiscardUnknown

func (m *PostTaskResponse) XXX_DiscardUnknown()

func (*PostTaskResponse) XXX_Marshal

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

func (*PostTaskResponse) XXX_Merge

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

func (*PostTaskResponse) XXX_Size

func (m *PostTaskResponse) XXX_Size() int

func (*PostTaskResponse) XXX_Unmarshal

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

type PutTaskRequest

type PutTaskRequest struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Text                 string               `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Time                 *timestamp.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PutTaskRequest) Descriptor

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

func (*PutTaskRequest) GetId

func (m *PutTaskRequest) GetId() string

func (*PutTaskRequest) GetText

func (m *PutTaskRequest) GetText() string

func (*PutTaskRequest) GetTime

func (m *PutTaskRequest) GetTime() *timestamp.Timestamp

func (*PutTaskRequest) ProtoMessage

func (*PutTaskRequest) ProtoMessage()

func (*PutTaskRequest) Reset

func (m *PutTaskRequest) Reset()

func (*PutTaskRequest) String

func (m *PutTaskRequest) String() string

func (*PutTaskRequest) XXX_DiscardUnknown

func (m *PutTaskRequest) XXX_DiscardUnknown()

func (*PutTaskRequest) XXX_Marshal

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

func (*PutTaskRequest) XXX_Merge

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

func (*PutTaskRequest) XXX_Size

func (m *PutTaskRequest) XXX_Size() int

func (*PutTaskRequest) XXX_Unmarshal

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

type PutTaskResponse

type PutTaskResponse struct {
	Task                 string   `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	Confirmation         int64    `protobuf:"varint,2,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutTaskResponse) Descriptor

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

func (*PutTaskResponse) GetConfirmation

func (m *PutTaskResponse) GetConfirmation() int64

func (*PutTaskResponse) GetTask

func (m *PutTaskResponse) GetTask() string

func (*PutTaskResponse) ProtoMessage

func (*PutTaskResponse) ProtoMessage()

func (*PutTaskResponse) Reset

func (m *PutTaskResponse) Reset()

func (*PutTaskResponse) String

func (m *PutTaskResponse) String() string

func (*PutTaskResponse) XXX_DiscardUnknown

func (m *PutTaskResponse) XXX_DiscardUnknown()

func (*PutTaskResponse) XXX_Marshal

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

func (*PutTaskResponse) XXX_Merge

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

func (*PutTaskResponse) XXX_Size

func (m *PutTaskResponse) XXX_Size() int

func (*PutTaskResponse) XXX_Unmarshal

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

type Task

type Task struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Text                 string               `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Time                 *timestamp.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Task) Descriptor

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

func (*Task) GetId

func (m *Task) GetId() string

func (*Task) GetText

func (m *Task) GetText() string

func (*Task) GetTime

func (m *Task) GetTime() *timestamp.Timestamp

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) String

func (m *Task) String() string

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

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

func (*Task) XXX_Merge

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

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

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

type TaskServiceClient

type TaskServiceClient interface {
	PostTask(ctx context.Context, in *PostTaskRequest, opts ...grpc.CallOption) (*PostTaskResponse, error)
	GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*GetTaskResponse, error)
	GetMultipleTask(ctx context.Context, in *GetMultipleTaskRequest, opts ...grpc.CallOption) (*GetMultipleTaskResponse, error)
	PutTask(ctx context.Context, in *PutTaskRequest, opts ...grpc.CallOption) (*PutTaskResponse, error)
	DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*DeleteTaskResponse, error)
}

TaskServiceClient is the client API for TaskService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTaskServiceClient

func NewTaskServiceClient(cc *grpc.ClientConn) TaskServiceClient

type TaskServiceServer

TaskServiceServer is the server API for TaskService service.

type UnimplementedTaskServiceServer

type UnimplementedTaskServiceServer struct {
}

UnimplementedTaskServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTaskServiceServer) DeleteTask

func (*UnimplementedTaskServiceServer) GetMultipleTask

func (*UnimplementedTaskServiceServer) GetTask

func (*UnimplementedTaskServiceServer) PostTask

func (*UnimplementedTaskServiceServer) PutTask

Jump to

Keyboard shortcuts

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