v1

package
v0.0.0-...-656e5dc Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTodoServiceServer

func RegisterTodoServiceServer(s *grpc.Server, srv TodoServiceServer)

Types

type CreateRequest

type CreateRequest struct {
	Api                  string   `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
	Todo                 *Todo    `protobuf:"bytes,2,opt,name=Todo,proto3" json:"Todo,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateRequest) Descriptor

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

func (*CreateRequest) GetApi

func (m *CreateRequest) GetApi() string

func (*CreateRequest) GetTodo

func (m *CreateRequest) GetTodo() *Todo

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

func (*CreateRequest) XXX_DiscardUnknown

func (m *CreateRequest) XXX_DiscardUnknown()

func (*CreateRequest) XXX_Marshal

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

func (*CreateRequest) XXX_Merge

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

func (*CreateRequest) XXX_Size

func (m *CreateRequest) XXX_Size() int

func (*CreateRequest) XXX_Unmarshal

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

type CreateResponse

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

func (*CreateResponse) Descriptor

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

func (*CreateResponse) GetApi

func (m *CreateResponse) GetApi() string

func (*CreateResponse) GetId

func (m *CreateResponse) GetId() int64

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset

func (m *CreateResponse) Reset()

func (*CreateResponse) String

func (m *CreateResponse) String() string

func (*CreateResponse) XXX_DiscardUnknown

func (m *CreateResponse) XXX_DiscardUnknown()

func (*CreateResponse) XXX_Marshal

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

func (*CreateResponse) XXX_Merge

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

func (*CreateResponse) XXX_Size

func (m *CreateResponse) XXX_Size() int

func (*CreateResponse) XXX_Unmarshal

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

type ReadAllRequest

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

func (*ReadAllRequest) Descriptor

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

func (*ReadAllRequest) GetApi

func (m *ReadAllRequest) GetApi() string

func (*ReadAllRequest) ProtoMessage

func (*ReadAllRequest) ProtoMessage()

func (*ReadAllRequest) Reset

func (m *ReadAllRequest) Reset()

func (*ReadAllRequest) String

func (m *ReadAllRequest) String() string

func (*ReadAllRequest) XXX_DiscardUnknown

func (m *ReadAllRequest) XXX_DiscardUnknown()

func (*ReadAllRequest) XXX_Marshal

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

func (*ReadAllRequest) XXX_Merge

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

func (*ReadAllRequest) XXX_Size

func (m *ReadAllRequest) XXX_Size() int

func (*ReadAllRequest) XXX_Unmarshal

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

type ReadAllResponse

type ReadAllResponse struct {
	Api                  string   `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
	Todos                []*Todo  `protobuf:"bytes,2,rep,name=Todos,proto3" json:"Todos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReadAllResponse) Descriptor

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

func (*ReadAllResponse) GetApi

func (m *ReadAllResponse) GetApi() string

func (*ReadAllResponse) GetTodos

func (m *ReadAllResponse) GetTodos() []*Todo

func (*ReadAllResponse) ProtoMessage

func (*ReadAllResponse) ProtoMessage()

func (*ReadAllResponse) Reset

func (m *ReadAllResponse) Reset()

func (*ReadAllResponse) String

func (m *ReadAllResponse) String() string

func (*ReadAllResponse) XXX_DiscardUnknown

func (m *ReadAllResponse) XXX_DiscardUnknown()

func (*ReadAllResponse) XXX_Marshal

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

func (*ReadAllResponse) XXX_Merge

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

func (*ReadAllResponse) XXX_Size

func (m *ReadAllResponse) XXX_Size() int

func (*ReadAllResponse) XXX_Unmarshal

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

type Todo

type Todo struct {
	TodoId               int64                `protobuf:"varint,1,opt,name=todo_id,json=todoId,proto3" json:"todo_id,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description          string               `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Reminder             *timestamp.Timestamp `protobuf:"bytes,4,opt,name=reminder,proto3" json:"reminder,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Todo) Descriptor

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

func (*Todo) GetDescription

func (m *Todo) GetDescription() string

func (*Todo) GetReminder

func (m *Todo) GetReminder() *timestamp.Timestamp

func (*Todo) GetTitle

func (m *Todo) GetTitle() string

func (*Todo) GetTodoId

func (m *Todo) GetTodoId() int64

func (*Todo) ProtoMessage

func (*Todo) ProtoMessage()

func (*Todo) Reset

func (m *Todo) Reset()

func (*Todo) String

func (m *Todo) String() string

func (*Todo) XXX_DiscardUnknown

func (m *Todo) XXX_DiscardUnknown()

func (*Todo) XXX_Marshal

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

func (*Todo) XXX_Merge

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

func (*Todo) XXX_Size

func (m *Todo) XXX_Size() int

func (*Todo) XXX_Unmarshal

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

type TodoServiceClient

type TodoServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	ReadAll(ctx context.Context, in *ReadAllRequest, opts ...grpc.CallOption) (*ReadAllResponse, error)
}

TodoServiceClient is the client API for TodoService service.

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

func NewTodoServiceClient

func NewTodoServiceClient(cc *grpc.ClientConn) TodoServiceClient

type TodoServiceServer

type TodoServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	ReadAll(context.Context, *ReadAllRequest) (*ReadAllResponse, error)
}

TodoServiceServer is the server API for TodoService service.

Jump to

Keyboard shortcuts

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