Documentation ¶
Index ¶
- func LoadData(db *buntdb.DB, source io.Reader) error
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCount() int32
- func (m *Address) GetLatitude() float64
- func (m *Address) GetLongitude() float64
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type Filters
- func (*Filters) Descriptor() ([]byte, []int)
- func (m *Filters) GetMaxLatitude() float64
- func (m *Filters) GetMaxLongitude() float64
- func (m *Filters) GetMinLatitude() float64
- func (m *Filters) GetMinLongitude() float64
- func (*Filters) ProtoMessage()
- func (m *Filters) Reset()
- func (m *Filters) String() string
- func (m *Filters) XXX_DiscardUnknown()
- func (m *Filters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Filters) XXX_Merge(src proto.Message)
- func (m *Filters) XXX_Size() int
- func (m *Filters) XXX_Unmarshal(b []byte) error
- type ListResult
- func (*ListResult) Descriptor() ([]byte, []int)
- func (m *ListResult) GetMaxCount() int32
- func (m *ListResult) GetResults() []*Address
- func (*ListResult) ProtoMessage()
- func (m *ListResult) Reset()
- func (m *ListResult) String() string
- func (m *ListResult) XXX_DiscardUnknown()
- func (m *ListResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResult) XXX_Merge(src proto.Message)
- func (m *ListResult) XXX_Size() int
- func (m *ListResult) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address struct { Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Address) Descriptor ¶
func (*Address) GetLatitude ¶
func (*Address) GetLongitude ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type Filters ¶
type Filters struct { MinLatitude float64 `protobuf:"fixed64,1,opt,name=minLatitude,proto3" json:"minLatitude,omitempty"` MaxLatitude float64 `protobuf:"fixed64,2,opt,name=maxLatitude,proto3" json:"maxLatitude,omitempty"` MinLongitude float64 `protobuf:"fixed64,3,opt,name=minLongitude,proto3" json:"minLongitude,omitempty"` MaxLongitude float64 `protobuf:"fixed64,4,opt,name=maxLongitude,proto3" json:"maxLongitude,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Filters) Descriptor ¶
func (*Filters) GetMaxLatitude ¶
func (*Filters) GetMaxLongitude ¶
func (*Filters) GetMinLatitude ¶
func (*Filters) GetMinLongitude ¶
func (*Filters) ProtoMessage ¶
func (*Filters) ProtoMessage()
func (*Filters) XXX_DiscardUnknown ¶
func (m *Filters) XXX_DiscardUnknown()
func (*Filters) XXX_Marshal ¶
func (*Filters) XXX_Unmarshal ¶
type ListResult ¶
type ListResult struct { Results []*Address `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` MaxCount int32 `protobuf:"varint,2,opt,name=maxCount,proto3" json:"maxCount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func List ¶
func List(db *buntdb.DB, f Filters) (ListResult, error)
List fetches a list of IPv6 models according to the specified (optional) `Filters`.
func (*ListResult) Descriptor ¶
func (*ListResult) Descriptor() ([]byte, []int)
func (*ListResult) GetMaxCount ¶
func (m *ListResult) GetMaxCount() int32
func (*ListResult) GetResults ¶
func (m *ListResult) GetResults() []*Address
func (*ListResult) ProtoMessage ¶
func (*ListResult) ProtoMessage()
func (*ListResult) Reset ¶
func (m *ListResult) Reset()
func (*ListResult) String ¶
func (m *ListResult) String() string
func (*ListResult) XXX_DiscardUnknown ¶
func (m *ListResult) XXX_DiscardUnknown()
func (*ListResult) XXX_Marshal ¶
func (m *ListResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResult) XXX_Merge ¶
func (m *ListResult) XXX_Merge(src proto.Message)
func (*ListResult) XXX_Size ¶
func (m *ListResult) XXX_Size() int
func (*ListResult) XXX_Unmarshal ¶
func (m *ListResult) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.