todoapp

package
v0.0.0-...-e4423b2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTodoAppServer

func RegisterTodoAppServer(s *grpc.Server, srv TodoAppServer)

Types

type CreateTodoRequest

type CreateTodoRequest struct {
	Title                string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTodoRequest) Descriptor

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

func (*CreateTodoRequest) GetDescription

func (m *CreateTodoRequest) GetDescription() string

func (*CreateTodoRequest) GetTitle

func (m *CreateTodoRequest) GetTitle() string

func (*CreateTodoRequest) ProtoMessage

func (*CreateTodoRequest) ProtoMessage()

func (*CreateTodoRequest) Reset

func (m *CreateTodoRequest) Reset()

func (*CreateTodoRequest) String

func (m *CreateTodoRequest) String() string

func (*CreateTodoRequest) XXX_DiscardUnknown

func (m *CreateTodoRequest) XXX_DiscardUnknown()

func (*CreateTodoRequest) XXX_Marshal

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

func (*CreateTodoRequest) XXX_Merge

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

func (*CreateTodoRequest) XXX_Size

func (m *CreateTodoRequest) XXX_Size() int

func (*CreateTodoRequest) XXX_Unmarshal

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

type CreateTodoResponse

type CreateTodoResponse struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTodoResponse) Descriptor

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

func (*CreateTodoResponse) GetDescription

func (m *CreateTodoResponse) GetDescription() string

func (*CreateTodoResponse) GetTitle

func (m *CreateTodoResponse) GetTitle() string

func (*CreateTodoResponse) GetUuid

func (m *CreateTodoResponse) GetUuid() string

func (*CreateTodoResponse) ProtoMessage

func (*CreateTodoResponse) ProtoMessage()

func (*CreateTodoResponse) Reset

func (m *CreateTodoResponse) Reset()

func (*CreateTodoResponse) String

func (m *CreateTodoResponse) String() string

func (*CreateTodoResponse) XXX_DiscardUnknown

func (m *CreateTodoResponse) XXX_DiscardUnknown()

func (*CreateTodoResponse) XXX_Marshal

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

func (*CreateTodoResponse) XXX_Merge

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

func (*CreateTodoResponse) XXX_Size

func (m *CreateTodoResponse) XXX_Size() int

func (*CreateTodoResponse) XXX_Unmarshal

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

type TodoAppClient

type TodoAppClient interface {
	// Creates a todo and saves it
	CreateTodo(ctx context.Context, in *CreateTodoRequest, opts ...grpc.CallOption) (*CreateTodoResponse, error)
}

TodoAppClient is the client API for TodoApp service.

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

func NewTodoAppClient

func NewTodoAppClient(cc grpc.ClientConnInterface) TodoAppClient

type TodoAppServer

type TodoAppServer interface {
	// Creates a todo and saves it
	CreateTodo(context.Context, *CreateTodoRequest) (*CreateTodoResponse, error)
}

TodoAppServer is the server API for TodoApp service.

type UnimplementedTodoAppServer

type UnimplementedTodoAppServer struct {
}

UnimplementedTodoAppServer can be embedded to have forward compatible implementations.

func (*UnimplementedTodoAppServer) CreateTodo

Jump to

Keyboard shortcuts

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