Documentation ¶
Index ¶
- func RegisterTodoInterfaceHandler(s server.Server, hdlr TodoInterfaceHandler, opts ...server.HandlerOption) error
- type AddReq
- func (*AddReq) Descriptor() ([]byte, []int)
- func (m *AddReq) GetContent() string
- func (m *AddReq) GetTitle() string
- func (*AddReq) ProtoMessage()
- func (m *AddReq) Reset()
- func (m *AddReq) String() string
- func (m *AddReq) XXX_DiscardUnknown()
- func (m *AddReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddReq) XXX_Merge(src proto.Message)
- func (m *AddReq) XXX_Size() int
- func (m *AddReq) XXX_Unmarshal(b []byte) error
- type AddResp
- func (*AddResp) Descriptor() ([]byte, []int)
- func (m *AddResp) GetError() *Error
- func (m *AddResp) GetSuccess() bool
- func (m *AddResp) GetTodo() *Todo
- func (*AddResp) ProtoMessage()
- func (m *AddResp) Reset()
- func (m *AddResp) String() string
- func (m *AddResp) XXX_DiscardUnknown()
- func (m *AddResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddResp) XXX_Merge(src proto.Message)
- func (m *AddResp) XXX_Size() int
- func (m *AddResp) XXX_Unmarshal(b []byte) error
- type DelReq
- func (*DelReq) Descriptor() ([]byte, []int)
- func (m *DelReq) GetId() string
- func (*DelReq) ProtoMessage()
- func (m *DelReq) Reset()
- func (m *DelReq) String() string
- func (m *DelReq) XXX_DiscardUnknown()
- func (m *DelReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelReq) XXX_Merge(src proto.Message)
- func (m *DelReq) XXX_Size() int
- func (m *DelReq) XXX_Unmarshal(b []byte) error
- type DelResp
- func (*DelResp) Descriptor() ([]byte, []int)
- func (m *DelResp) GetError() *Error
- func (m *DelResp) GetSuccess() bool
- func (*DelResp) ProtoMessage()
- func (m *DelResp) Reset()
- func (m *DelResp) String() string
- func (m *DelResp) XXX_DiscardUnknown()
- func (m *DelResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelResp) XXX_Merge(src proto.Message)
- func (m *DelResp) XXX_Size() int
- func (m *DelResp) XXX_Unmarshal(b []byte) error
- type DetailReq
- func (*DetailReq) Descriptor() ([]byte, []int)
- func (m *DetailReq) GetId() string
- func (*DetailReq) ProtoMessage()
- func (m *DetailReq) Reset()
- func (m *DetailReq) String() string
- func (m *DetailReq) XXX_DiscardUnknown()
- func (m *DetailReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DetailReq) XXX_Merge(src proto.Message)
- func (m *DetailReq) XXX_Size() int
- func (m *DetailReq) XXX_Unmarshal(b []byte) error
- type DetailResp
- func (*DetailResp) Descriptor() ([]byte, []int)
- func (m *DetailResp) GetError() *Error
- func (m *DetailResp) GetSuccess() bool
- func (m *DetailResp) GetTodo() *Todo
- func (*DetailResp) ProtoMessage()
- func (m *DetailResp) Reset()
- func (m *DetailResp) String() string
- func (m *DetailResp) XXX_DiscardUnknown()
- func (m *DetailResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DetailResp) XXX_Merge(src proto.Message)
- func (m *DetailResp) XXX_Size() int
- func (m *DetailResp) XXX_Unmarshal(b []byte) error
- type EditReq
- func (*EditReq) Descriptor() ([]byte, []int)
- func (m *EditReq) GetContent() string
- func (m *EditReq) GetId() string
- func (m *EditReq) GetTitle() string
- func (*EditReq) ProtoMessage()
- func (m *EditReq) Reset()
- func (m *EditReq) String() string
- func (m *EditReq) XXX_DiscardUnknown()
- func (m *EditReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EditReq) XXX_Merge(src proto.Message)
- func (m *EditReq) XXX_Size() int
- func (m *EditReq) XXX_Unmarshal(b []byte) error
- type EditResp
- func (*EditResp) Descriptor() ([]byte, []int)
- func (m *EditResp) GetError() *Error
- func (m *EditResp) GetSuccess() bool
- func (*EditResp) ProtoMessage()
- func (m *EditResp) Reset()
- func (m *EditResp) String() string
- func (m *EditResp) XXX_DiscardUnknown()
- func (m *EditResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EditResp) XXX_Merge(src proto.Message)
- func (m *EditResp) XXX_Size() int
- func (m *EditResp) XXX_Unmarshal(b []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() int32
- func (m *Error) GetDetail() string
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type ListReq
- func (*ListReq) Descriptor() ([]byte, []int)
- func (*ListReq) ProtoMessage()
- func (m *ListReq) Reset()
- func (m *ListReq) String() string
- func (m *ListReq) XXX_DiscardUnknown()
- func (m *ListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListReq) XXX_Merge(src proto.Message)
- func (m *ListReq) XXX_Size() int
- func (m *ListReq) XXX_Unmarshal(b []byte) error
- type ListResp
- func (*ListResp) Descriptor() ([]byte, []int)
- func (m *ListResp) GetError() *Error
- func (m *ListResp) GetSuccess() bool
- func (m *ListResp) GetTodos() []*Todo
- func (*ListResp) ProtoMessage()
- func (m *ListResp) Reset()
- func (m *ListResp) String() string
- func (m *ListResp) XXX_DiscardUnknown()
- func (m *ListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResp) XXX_Merge(src proto.Message)
- func (m *ListResp) XXX_Size() int
- func (m *ListResp) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetSay() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Todo
- func (*Todo) Descriptor() ([]byte, []int)
- func (m *Todo) GetContent() string
- func (m *Todo) GetId() string
- func (m *Todo) GetTitle() string
- func (*Todo) ProtoMessage()
- func (m *Todo) Reset()
- func (m *Todo) String() string
- func (m *Todo) XXX_DiscardUnknown()
- func (m *Todo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Todo) XXX_Merge(src proto.Message)
- func (m *Todo) XXX_Size() int
- func (m *Todo) XXX_Unmarshal(b []byte) error
- type TodoInterfaceHandler
- type TodoInterfaceService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTodoInterfaceHandler ¶
func RegisterTodoInterfaceHandler(s server.Server, hdlr TodoInterfaceHandler, opts ...server.HandlerOption) error
Types ¶
type AddReq ¶
type AddReq struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddReq) Descriptor ¶
func (*AddReq) GetContent ¶
func (*AddReq) ProtoMessage ¶
func (*AddReq) ProtoMessage()
func (*AddReq) XXX_DiscardUnknown ¶
func (m *AddReq) XXX_DiscardUnknown()
func (*AddReq) XXX_Marshal ¶
func (*AddReq) XXX_Unmarshal ¶
type AddResp ¶
type AddResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Todo *Todo `protobuf:"bytes,3,opt,name=todo,proto3" json:"todo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddResp) Descriptor ¶
func (*AddResp) GetSuccess ¶
func (*AddResp) ProtoMessage ¶
func (*AddResp) ProtoMessage()
func (*AddResp) XXX_DiscardUnknown ¶
func (m *AddResp) XXX_DiscardUnknown()
func (*AddResp) XXX_Marshal ¶
func (*AddResp) XXX_Unmarshal ¶
type DelReq ¶
type DelReq 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 (*DelReq) Descriptor ¶
func (*DelReq) ProtoMessage ¶
func (*DelReq) ProtoMessage()
func (*DelReq) XXX_DiscardUnknown ¶
func (m *DelReq) XXX_DiscardUnknown()
func (*DelReq) XXX_Marshal ¶
func (*DelReq) XXX_Unmarshal ¶
type DelResp ¶
type DelResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DelResp) Descriptor ¶
func (*DelResp) GetSuccess ¶
func (*DelResp) ProtoMessage ¶
func (*DelResp) ProtoMessage()
func (*DelResp) XXX_DiscardUnknown ¶
func (m *DelResp) XXX_DiscardUnknown()
func (*DelResp) XXX_Marshal ¶
func (*DelResp) XXX_Unmarshal ¶
type DetailReq ¶
type DetailReq 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 (*DetailReq) Descriptor ¶
func (*DetailReq) ProtoMessage ¶
func (*DetailReq) ProtoMessage()
func (*DetailReq) XXX_DiscardUnknown ¶
func (m *DetailReq) XXX_DiscardUnknown()
func (*DetailReq) XXX_Marshal ¶
func (*DetailReq) XXX_Unmarshal ¶
type DetailResp ¶
type DetailResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Todo *Todo `protobuf:"bytes,3,opt,name=todo,proto3" json:"todo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DetailResp) Descriptor ¶
func (*DetailResp) Descriptor() ([]byte, []int)
func (*DetailResp) GetError ¶
func (m *DetailResp) GetError() *Error
func (*DetailResp) GetSuccess ¶
func (m *DetailResp) GetSuccess() bool
func (*DetailResp) GetTodo ¶
func (m *DetailResp) GetTodo() *Todo
func (*DetailResp) ProtoMessage ¶
func (*DetailResp) ProtoMessage()
func (*DetailResp) Reset ¶
func (m *DetailResp) Reset()
func (*DetailResp) String ¶
func (m *DetailResp) String() string
func (*DetailResp) XXX_DiscardUnknown ¶
func (m *DetailResp) XXX_DiscardUnknown()
func (*DetailResp) XXX_Marshal ¶
func (m *DetailResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DetailResp) XXX_Merge ¶
func (m *DetailResp) XXX_Merge(src proto.Message)
func (*DetailResp) XXX_Size ¶
func (m *DetailResp) XXX_Size() int
func (*DetailResp) XXX_Unmarshal ¶
func (m *DetailResp) XXX_Unmarshal(b []byte) error
type EditReq ¶
type EditReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EditReq) Descriptor ¶
func (*EditReq) GetContent ¶
func (*EditReq) ProtoMessage ¶
func (*EditReq) ProtoMessage()
func (*EditReq) XXX_DiscardUnknown ¶
func (m *EditReq) XXX_DiscardUnknown()
func (*EditReq) XXX_Marshal ¶
func (*EditReq) XXX_Unmarshal ¶
type EditResp ¶
type EditResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EditResp) Descriptor ¶
func (*EditResp) GetSuccess ¶
func (*EditResp) ProtoMessage ¶
func (*EditResp) ProtoMessage()
func (*EditResp) XXX_DiscardUnknown ¶
func (m *EditResp) XXX_DiscardUnknown()
func (*EditResp) XXX_Marshal ¶
func (*EditResp) XXX_Unmarshal ¶
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type ListReq ¶
type ListReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListReq) Descriptor ¶
func (*ListReq) ProtoMessage ¶
func (*ListReq) ProtoMessage()
func (*ListReq) XXX_DiscardUnknown ¶
func (m *ListReq) XXX_DiscardUnknown()
func (*ListReq) XXX_Marshal ¶
func (*ListReq) XXX_Unmarshal ¶
type ListResp ¶
type ListResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Todos []*Todo `protobuf:"bytes,3,rep,name=todos,proto3" json:"todos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListResp) Descriptor ¶
func (*ListResp) GetSuccess ¶
func (*ListResp) ProtoMessage ¶
func (*ListResp) ProtoMessage()
func (*ListResp) XXX_DiscardUnknown ¶
func (m *ListResp) XXX_DiscardUnknown()
func (*ListResp) XXX_Marshal ¶
func (*ListResp) XXX_Unmarshal ¶
type Message ¶
type Message struct { Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Todo ¶
type Todo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Todo) Descriptor ¶
func (*Todo) GetContent ¶
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
func (*Todo) XXX_DiscardUnknown ¶
func (m *Todo) XXX_DiscardUnknown()
func (*Todo) XXX_Unmarshal ¶
type TodoInterfaceHandler ¶
type TodoInterfaceService ¶
type TodoInterfaceService interface { Add(ctx context.Context, in *AddReq, opts ...client.CallOption) (*AddResp, error) Del(ctx context.Context, in *DelReq, opts ...client.CallOption) (*DelResp, error) Edit(ctx context.Context, in *EditReq, opts ...client.CallOption) (*EditResp, error) List(ctx context.Context, in *ListReq, opts ...client.CallOption) (*ListResp, error) Detail(ctx context.Context, in *DetailReq, opts ...client.CallOption) (*DetailResp, error) }
func NewTodoInterfaceService ¶
func NewTodoInterfaceService(name string, c client.Client) TodoInterfaceService
Click to show internal directories.
Click to hide internal directories.