Documentation
¶
Overview ¶
Package jsonfile is a generated protocol buffer package.
It is generated from these files:
checkpoint.proto
It has these top-level messages:
Checkpoint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct { Pos int64 `protobuf:"varint,2,opt,name=Pos" json:"Pos,omitempty"` Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` }
func (*Checkpoint) Descriptor ¶
func (*Checkpoint) Descriptor() ([]byte, []int)
func (*Checkpoint) GetName ¶
func (m *Checkpoint) GetName() string
func (*Checkpoint) GetPos ¶
func (m *Checkpoint) GetPos() int64
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) Reset ¶
func (m *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (m *Checkpoint) String() string
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source from JSON encoded values.
func New ¶
New json file source. Parameter prototype should be a non-pointer value of the type to decode into, for example:
data, err := jsonfile.FromFile(MyType{}, "event.data")
Click to show internal directories.
Click to hide internal directories.