Documentation ¶
Overview ¶
Package readinglist is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
PutLinkProtoJSONRequest GetListProtoJSONRequest Link LinkRequest Links Message
Index ¶
- Constants
- func NewService(db DB) marvin.MixedService
- type Client
- type DB
- type Datastore
- type GetListProtoJSONRequest
- func (*GetListProtoJSONRequest) Descriptor() ([]byte, []int)
- func (m *GetListProtoJSONRequest) GetLimit() int32
- func (m *GetListProtoJSONRequest) GetProtoJSON() string
- func (*GetListProtoJSONRequest) ProtoMessage()
- func (m *GetListProtoJSONRequest) Reset()
- func (m *GetListProtoJSONRequest) String() string
- type Link
- type LinkRequest
- type Links
- type Message
- type PutLinkProtoJSONRequest
- func (*PutLinkProtoJSONRequest) Descriptor() ([]byte, []int)
- func (m *PutLinkProtoJSONRequest) GetProtoJSON() string
- func (m *PutLinkProtoJSONRequest) GetRequest() *LinkRequest
- func (*PutLinkProtoJSONRequest) ProtoMessage()
- func (m *PutLinkProtoJSONRequest) Reset()
- func (m *PutLinkProtoJSONRequest) String() string
Constants ¶
View Source
const LinkKind = "Link"
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(db DB) marvin.MixedService
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(host string, l log.Logger, opts ...httptransport.ClientOption) *Client
type GetListProtoJSONRequest ¶
type GetListProtoJSONRequest struct { // The limit of links to fetch Limit int32 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` // The transport to respond with (Protobuf or JSON). ProtoJSON string `protobuf:"bytes,1,opt,name=protoJSON" json:"protoJSON,omitempty"` }
func (*GetListProtoJSONRequest) Descriptor ¶
func (*GetListProtoJSONRequest) Descriptor() ([]byte, []int)
func (*GetListProtoJSONRequest) GetLimit ¶
func (m *GetListProtoJSONRequest) GetLimit() int32
func (*GetListProtoJSONRequest) GetProtoJSON ¶
func (m *GetListProtoJSONRequest) GetProtoJSON() string
func (*GetListProtoJSONRequest) ProtoMessage ¶
func (*GetListProtoJSONRequest) ProtoMessage()
func (*GetListProtoJSONRequest) Reset ¶
func (m *GetListProtoJSONRequest) Reset()
func (*GetListProtoJSONRequest) String ¶
func (m *GetListProtoJSONRequest) String() string
type Link ¶
type Link struct {
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
}
func (*Link) Descriptor ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
type LinkRequest ¶
type LinkRequest struct { // True to remove this link from the user's list. Delete bool `protobuf:"varint,1,opt,name=delete" json:"delete,omitempty"` Link *Link `protobuf:"bytes,2,opt,name=link" json:"link,omitempty"` }
func (*LinkRequest) Descriptor ¶
func (*LinkRequest) Descriptor() ([]byte, []int)
func (*LinkRequest) GetDelete ¶
func (m *LinkRequest) GetDelete() bool
func (*LinkRequest) GetLink ¶
func (m *LinkRequest) GetLink() *Link
func (*LinkRequest) ProtoMessage ¶
func (*LinkRequest) ProtoMessage()
func (*LinkRequest) Reset ¶
func (m *LinkRequest) Reset()
func (*LinkRequest) String ¶
func (m *LinkRequest) String() string
type Links ¶
type Links struct {
Links []*Link `protobuf:"bytes,1,rep,name=links" json:"links,omitempty"`
}
func (*Links) Descriptor ¶
func (*Links) ProtoMessage ¶
func (*Links) ProtoMessage()
type Message ¶
type Message struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Message) Descriptor ¶
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type PutLinkProtoJSONRequest ¶
type PutLinkProtoJSONRequest struct { // The transport to respond with (Protobuf or JSON) ProtoJSON string `protobuf:"bytes,1,opt,name=protoJSON" json:"protoJSON,omitempty"` // The Link to save Request *LinkRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` }
func (*PutLinkProtoJSONRequest) Descriptor ¶
func (*PutLinkProtoJSONRequest) Descriptor() ([]byte, []int)
func (*PutLinkProtoJSONRequest) GetProtoJSON ¶
func (m *PutLinkProtoJSONRequest) GetProtoJSON() string
func (*PutLinkProtoJSONRequest) GetRequest ¶
func (m *PutLinkProtoJSONRequest) GetRequest() *LinkRequest
func (*PutLinkProtoJSONRequest) ProtoMessage ¶
func (*PutLinkProtoJSONRequest) ProtoMessage()
func (*PutLinkProtoJSONRequest) Reset ¶
func (m *PutLinkProtoJSONRequest) Reset()
func (*PutLinkProtoJSONRequest) String ¶
func (m *PutLinkProtoJSONRequest) String() string
Click to show internal directories.
Click to hide internal directories.