todo

package
v0.0.0-...-f6789ae Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package todo is a generated protocol buffer package.

It is generated from these files:

todo.proto

It has these top-level messages:

Todo
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTodoServiceServer

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

Types

type Response

type Response struct {
	Status int32  `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type Server

type Server struct {
}

func (*Server) CreateTodo

func (s *Server) CreateTodo(ctx context.Context, in *Todo) (*Response, error)

type Todo

type Todo struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Todo) ProtoMessage

func (*Todo) ProtoMessage()

func (*Todo) Reset

func (m *Todo) Reset()

func (*Todo) String

func (m *Todo) String() string

type TodoServiceClient

type TodoServiceClient interface {
	CreateTodo(ctx context.Context, in *Todo, opts ...grpc.CallOption) (*Response, error)
}

func NewTodoServiceClient

func NewTodoServiceClient(cc *grpc.ClientConn) TodoServiceClient

type TodoServiceServer

type TodoServiceServer interface {
	CreateTodo(context.Context, *Todo) (*Response, error)
}

Jump to

Keyboard shortcuts

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