Documentation ¶
Overview ¶
Package leasepb is a generated protocol buffer package.
It is generated from these files:
lease.proto
It has these top-level messages:
Lease
Index ¶
- Variables
- type Lease
- func (*Lease) Descriptor() ([]byte, []int)
- func (m *Lease) Marshal() (data []byte, err error)
- func (m *Lease) MarshalTo(data []byte) (int, error)
- func (*Lease) ProtoMessage()
- func (m *Lease) Reset()
- func (m *Lease) Size() (n int)
- func (m *Lease) String() string
- func (m *Lease) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLease = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLease = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Lease ¶
type Lease struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` TTL int64 `protobuf:"varint,2,opt,name=TTL,json=tTL,proto3" json:"TTL,omitempty"` }
func (*Lease) Descriptor ¶
func (*Lease) ProtoMessage ¶
func (*Lease) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.