Versions in this module Expand all Collapse all v0 v0.0.1 Jul 15, 2018 Changes in this version + func StartRPCServer(port int) error + type Client struct + func NewClient(port int) (*Client, error) + type CreateTodoReq struct + Ctx context.Context + Data Todo + type CreateTodoRes struct + Err error + type DeleteTodoReq struct + ID uuid.UUID + type DeleteTodoRes struct + Err error + type GetTodoReq struct + ID uuid.UUID + type GetTodoRes struct + Data Todo + type Todo struct + Description string + ID uuid.UUID + Name string + Permalink string + func (t Todo) GetAge() int + type TodoClient struct + RPC *rpc.Client + func (cl *TodoClient) Get(id uuid.UUID) (*Todo, error) + type TodoServer struct + func NewTodoServer() *TodoServer + func (srv *TodoServer) Create(req CreateTodoReq, res *CreateTodoRes) error + func (srv *TodoServer) Delete(req DeleteTodoReq, res *DeleteTodoRes) error + func (srv *TodoServer) Get(req GetTodoReq, res *GetTodoRes) error + func (srv *TodoServer) Update(req UpdateTodoReq, res *UpdateTodoRes) error + type UpdateTodoReq struct + ID uuid.UUID + New Todo + type UpdateTodoRes struct + Err error