Documentation ¶
Overview ¶
Package gohn is a generated protocol buffer package.
It is generated from these files:
hn.proto
It has these top-level messages:
Item
Index ¶
- func ExpWithMax(mean, maxi float64) time.Duration
- type Item
- func (m *Item) GetBy() string
- func (m *Item) GetDescendants() int64
- func (m *Item) GetId() int64
- func (m *Item) GetKids() []int64
- func (m *Item) GetParent() int64
- func (m *Item) GetParts() []int64
- func (m *Item) GetScore() int64
- func (m *Item) GetText() string
- func (m *Item) GetTime() int64
- func (m *Item) GetTitle() string
- func (m *Item) GetType() string
- func (m *Item) GetUrl() string
- func (i *Item) PrettyString() string
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpWithMax ¶
Types ¶
type Item ¶
type Item struct { By *string `protobuf:"bytes,1,opt,name=by" json:"by,omitempty"` Descendants *int64 `protobuf:"varint,2,opt,name=descendants" json:"descendants,omitempty"` Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"` Kids []int64 `protobuf:"varint,4,rep,name=kids" json:"kids,omitempty"` Parent *int64 `protobuf:"varint,5,opt,name=parent" json:"parent,omitempty"` Parts []int64 `protobuf:"varint,6,rep,name=parts" json:"parts,omitempty"` Score *int64 `protobuf:"varint,7,opt,name=score" json:"score,omitempty"` Text *string `protobuf:"bytes,8,opt,name=text" json:"text,omitempty"` Time *int64 `protobuf:"varint,9,opt,name=time" json:"time,omitempty"` Title *string `protobuf:"bytes,10,opt,name=title" json:"title,omitempty"` Type *string `protobuf:"bytes,11,opt,name=type" json:"type,omitempty"` Url *string `protobuf:"bytes,12,opt,name=url" json:"url,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Item) GetDescendants ¶
func (*Item) PrettyString ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/golang/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
|
Package proto converts data structures to and from the wire format of protocol buffers. |
_workspace/src/github.com/golang/protobuf/proto/proto3_proto
Package proto3_proto is a generated protocol buffer package.
|
Package proto3_proto is a generated protocol buffer package. |
Concurrently downloads hacker news items.
|
Concurrently downloads hacker news items. |
Reads hacker news leveldb created by ../download
|
Reads hacker news leveldb created by ../download |
Click to show internal directories.
Click to hide internal directories.