go_micro_srv_todos

package
v0.0.0-...-14aa544 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*AddReq) GetContent

func (m *AddReq) GetContent() string

func (*AddReq) GetTitle

func (m *AddReq) GetTitle() string

func (*AddReq) ProtoMessage

func (*AddReq) ProtoMessage()

func (*AddReq) Reset

func (m *AddReq) Reset()

func (*AddReq) String

func (m *AddReq) String() string

func (*AddReq) XXX_DiscardUnknown

func (m *AddReq) XXX_DiscardUnknown()

func (*AddReq) XXX_Marshal

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

func (*AddReq) XXX_Merge

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

func (*AddReq) XXX_Size

func (m *AddReq) XXX_Size() int

func (*AddReq) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*AddResp) GetError

func (m *AddResp) GetError() *Error

func (*AddResp) GetSuccess

func (m *AddResp) GetSuccess() bool

func (*AddResp) GetTodo

func (m *AddResp) GetTodo() *Todo

func (*AddResp) ProtoMessage

func (*AddResp) ProtoMessage()

func (*AddResp) Reset

func (m *AddResp) Reset()

func (*AddResp) String

func (m *AddResp) String() string

func (*AddResp) XXX_DiscardUnknown

func (m *AddResp) XXX_DiscardUnknown()

func (*AddResp) XXX_Marshal

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

func (*AddResp) XXX_Merge

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

func (*AddResp) XXX_Size

func (m *AddResp) XXX_Size() int

func (*AddResp) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*DelReq) GetId

func (m *DelReq) GetId() string

func (*DelReq) ProtoMessage

func (*DelReq) ProtoMessage()

func (*DelReq) Reset

func (m *DelReq) Reset()

func (*DelReq) String

func (m *DelReq) String() string

func (*DelReq) XXX_DiscardUnknown

func (m *DelReq) XXX_DiscardUnknown()

func (*DelReq) XXX_Marshal

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

func (*DelReq) XXX_Merge

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

func (*DelReq) XXX_Size

func (m *DelReq) XXX_Size() int

func (*DelReq) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*DelResp) GetError

func (m *DelResp) GetError() *Error

func (*DelResp) GetSuccess

func (m *DelResp) GetSuccess() bool

func (*DelResp) ProtoMessage

func (*DelResp) ProtoMessage()

func (*DelResp) Reset

func (m *DelResp) Reset()

func (*DelResp) String

func (m *DelResp) String() string

func (*DelResp) XXX_DiscardUnknown

func (m *DelResp) XXX_DiscardUnknown()

func (*DelResp) XXX_Marshal

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

func (*DelResp) XXX_Merge

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

func (*DelResp) XXX_Size

func (m *DelResp) XXX_Size() int

func (*DelResp) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*DetailReq) GetId

func (m *DetailReq) GetId() string

func (*DetailReq) ProtoMessage

func (*DetailReq) ProtoMessage()

func (*DetailReq) Reset

func (m *DetailReq) Reset()

func (*DetailReq) String

func (m *DetailReq) String() string

func (*DetailReq) XXX_DiscardUnknown

func (m *DetailReq) XXX_DiscardUnknown()

func (*DetailReq) XXX_Marshal

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

func (*DetailReq) XXX_Merge

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

func (*DetailReq) XXX_Size

func (m *DetailReq) XXX_Size() int

func (*DetailReq) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*EditReq) GetContent

func (m *EditReq) GetContent() string

func (*EditReq) GetId

func (m *EditReq) GetId() string

func (*EditReq) GetTitle

func (m *EditReq) GetTitle() string

func (*EditReq) ProtoMessage

func (*EditReq) ProtoMessage()

func (*EditReq) Reset

func (m *EditReq) Reset()

func (*EditReq) String

func (m *EditReq) String() string

func (*EditReq) XXX_DiscardUnknown

func (m *EditReq) XXX_DiscardUnknown()

func (*EditReq) XXX_Marshal

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

func (*EditReq) XXX_Merge

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

func (*EditReq) XXX_Size

func (m *EditReq) XXX_Size() int

func (*EditReq) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*EditResp) GetError

func (m *EditResp) GetError() *Error

func (*EditResp) GetSuccess

func (m *EditResp) GetSuccess() bool

func (*EditResp) ProtoMessage

func (*EditResp) ProtoMessage()

func (*EditResp) Reset

func (m *EditResp) Reset()

func (*EditResp) String

func (m *EditResp) String() string

func (*EditResp) XXX_DiscardUnknown

func (m *EditResp) XXX_DiscardUnknown()

func (*EditResp) XXX_Marshal

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

func (*EditResp) XXX_Merge

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

func (*EditResp) XXX_Size

func (m *EditResp) XXX_Size() int

func (*EditResp) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Error) GetCode

func (m *Error) GetCode() int32

func (*Error) GetDetail

func (m *Error) GetDetail() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

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

func (*Error) XXX_Merge

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

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

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

type ListReq

type ListReq struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListReq) Descriptor

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

func (*ListReq) ProtoMessage

func (*ListReq) ProtoMessage()

func (*ListReq) Reset

func (m *ListReq) Reset()

func (*ListReq) String

func (m *ListReq) String() string

func (*ListReq) XXX_DiscardUnknown

func (m *ListReq) XXX_DiscardUnknown()

func (*ListReq) XXX_Marshal

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

func (*ListReq) XXX_Merge

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

func (*ListReq) XXX_Size

func (m *ListReq) XXX_Size() int

func (*ListReq) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*ListResp) GetError

func (m *ListResp) GetError() *Error

func (*ListResp) GetSuccess

func (m *ListResp) GetSuccess() bool

func (*ListResp) GetTodos

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

func (*ListResp) ProtoMessage

func (*ListResp) ProtoMessage()

func (*ListResp) Reset

func (m *ListResp) Reset()

func (*ListResp) String

func (m *ListResp) String() string

func (*ListResp) XXX_DiscardUnknown

func (m *ListResp) XXX_DiscardUnknown()

func (*ListResp) XXX_Marshal

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

func (*ListResp) XXX_Merge

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

func (*ListResp) XXX_Size

func (m *ListResp) XXX_Size() int

func (*ListResp) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Message) GetSay

func (m *Message) GetSay() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Todo) GetContent

func (m *Todo) GetContent() string

func (*Todo) GetId

func (m *Todo) GetId() string

func (*Todo) GetTitle

func (m *Todo) GetTitle() string

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 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

Jump to

Keyboard shortcuts

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