ipv6

package
v0.0.0-...-b35f7cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadData

func LoadData(db *buntdb.DB, source io.Reader) error

LoadData parses the data from the supplied source and populates our "persistence" layer.

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) Descriptor() ([]byte, []int)

func (*Address) GetCount

func (m *Address) GetCount() int32

func (*Address) GetLatitude

func (m *Address) GetLatitude() float64

func (*Address) GetLongitude

func (m *Address) GetLongitude() float64

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Filters) GetMaxLatitude

func (m *Filters) GetMaxLatitude() float64

func (*Filters) GetMaxLongitude

func (m *Filters) GetMaxLongitude() float64

func (*Filters) GetMinLatitude

func (m *Filters) GetMinLatitude() float64

func (*Filters) GetMinLongitude

func (m *Filters) GetMinLongitude() float64

func (*Filters) ProtoMessage

func (*Filters) ProtoMessage()

func (*Filters) Reset

func (m *Filters) Reset()

func (*Filters) String

func (m *Filters) String() string

func (*Filters) XXX_DiscardUnknown

func (m *Filters) XXX_DiscardUnknown()

func (*Filters) XXX_Marshal

func (m *Filters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Filters) XXX_Merge

func (m *Filters) XXX_Merge(src proto.Message)

func (*Filters) XXX_Size

func (m *Filters) XXX_Size() int

func (*Filters) XXX_Unmarshal

func (m *Filters) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL