Documentation ¶
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type ChainIndex
- func (*ChainIndex) Descriptor() ([]byte, []int)
- func (m *ChainIndex) GetLastUpdated() uint64
- func (m *ChainIndex) GetPower() map[string]*Power
- func (*ChainIndex) ProtoMessage()
- func (m *ChainIndex) Reset()
- func (m *ChainIndex) String() string
- func (m *ChainIndex) XXX_DiscardUnknown()
- func (m *ChainIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainIndex) XXX_Merge(src proto.Message)
- func (m *ChainIndex) XXX_Size() int
- func (m *ChainIndex) XXX_Unmarshal(b []byte) error
- type GetReply
- func (*GetReply) Descriptor() ([]byte, []int)
- func (m *GetReply) GetIndex() *Index
- func (*GetReply) ProtoMessage()
- func (m *GetReply) Reset()
- func (m *GetReply) String() string
- func (m *GetReply) XXX_DiscardUnknown()
- func (m *GetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetReply) XXX_Merge(src proto.Message)
- func (m *GetReply) XXX_Size() int
- func (m *GetReply) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type Index
- func (*Index) Descriptor() ([]byte, []int)
- func (m *Index) GetChain() *ChainIndex
- func (m *Index) GetMeta() *MetaIndex
- func (*Index) ProtoMessage()
- func (m *Index) Reset()
- func (m *Index) String() string
- func (m *Index) XXX_DiscardUnknown()
- func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Index) XXX_Merge(src proto.Message)
- func (m *Index) XXX_Size() int
- func (m *Index) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetCountry() string
- func (m *Location) GetLatitude() float32
- func (m *Location) GetLongitude() float32
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)
- func (m *Meta) GetLastUpdated() int64
- func (m *Meta) GetLocation() *Location
- func (m *Meta) GetOnline() bool
- func (m *Meta) GetUserAgent() string
- func (*Meta) ProtoMessage()
- func (m *Meta) Reset()
- func (m *Meta) String() string
- func (m *Meta) XXX_DiscardUnknown()
- func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Meta) XXX_Merge(src proto.Message)
- func (m *Meta) XXX_Size() int
- func (m *Meta) XXX_Unmarshal(b []byte) error
- type MetaIndex
- func (*MetaIndex) Descriptor() ([]byte, []int)
- func (m *MetaIndex) GetInfo() map[string]*Meta
- func (m *MetaIndex) GetOffline() uint32
- func (m *MetaIndex) GetOnline() uint32
- func (*MetaIndex) ProtoMessage()
- func (m *MetaIndex) Reset()
- func (m *MetaIndex) String() string
- func (m *MetaIndex) XXX_DiscardUnknown()
- func (m *MetaIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetaIndex) XXX_Merge(src proto.Message)
- func (m *MetaIndex) XXX_Size() int
- func (m *MetaIndex) XXX_Unmarshal(b []byte) error
- type Power
- func (*Power) Descriptor() ([]byte, []int)
- func (m *Power) GetPower() uint64
- func (m *Power) GetRelative() float32
- func (*Power) ProtoMessage()
- func (m *Power) Reset()
- func (m *Power) String() string
- func (m *Power) XXX_DiscardUnknown()
- func (m *Power) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Power) XXX_Merge(src proto.Message)
- func (m *Power) XXX_Size() int
- func (m *Power) XXX_Unmarshal(b []byte) error
- type UnimplementedAPIServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
}
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface {
Get(context.Context, *GetRequest) (*GetReply, error)
}
APIServer is the server API for API service.
type ChainIndex ¶
type ChainIndex struct { LastUpdated uint64 `protobuf:"varint,1,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"` Power map[string]*Power `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainIndex) Descriptor ¶
func (*ChainIndex) Descriptor() ([]byte, []int)
func (*ChainIndex) GetLastUpdated ¶
func (m *ChainIndex) GetLastUpdated() uint64
func (*ChainIndex) GetPower ¶
func (m *ChainIndex) GetPower() map[string]*Power
func (*ChainIndex) ProtoMessage ¶
func (*ChainIndex) ProtoMessage()
func (*ChainIndex) Reset ¶
func (m *ChainIndex) Reset()
func (*ChainIndex) String ¶
func (m *ChainIndex) String() string
func (*ChainIndex) XXX_DiscardUnknown ¶
func (m *ChainIndex) XXX_DiscardUnknown()
func (*ChainIndex) XXX_Marshal ¶
func (m *ChainIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainIndex) XXX_Merge ¶
func (m *ChainIndex) XXX_Merge(src proto.Message)
func (*ChainIndex) XXX_Size ¶
func (m *ChainIndex) XXX_Size() int
func (*ChainIndex) XXX_Unmarshal ¶
func (m *ChainIndex) XXX_Unmarshal(b []byte) error
type GetReply ¶
type GetReply struct { Index *Index `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetReply) Descriptor ¶
func (*GetReply) ProtoMessage ¶
func (*GetReply) ProtoMessage()
func (*GetReply) XXX_DiscardUnknown ¶
func (m *GetReply) XXX_DiscardUnknown()
func (*GetReply) XXX_Marshal ¶
func (*GetReply) XXX_Unmarshal ¶
type GetRequest ¶
type GetRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type Index ¶
type Index struct { Meta *MetaIndex `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Chain *ChainIndex `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Index) Descriptor ¶
func (*Index) GetChain ¶
func (m *Index) GetChain() *ChainIndex
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) XXX_DiscardUnknown ¶
func (m *Index) XXX_DiscardUnknown()
func (*Index) XXX_Marshal ¶
func (*Index) XXX_Unmarshal ¶
type Location ¶
type Location struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` Longitude float32 `protobuf:"fixed32,2,opt,name=longitude,proto3" json:"longitude,omitempty"` Latitude float32 `protobuf:"fixed32,3,opt,name=latitude,proto3" json:"latitude,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Location) Descriptor ¶
func (*Location) GetCountry ¶
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
type Meta ¶
type Meta struct { LastUpdated int64 `protobuf:"varint,1,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"` UserAgent string `protobuf:"bytes,2,opt,name=userAgent,proto3" json:"userAgent,omitempty"` Location *Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Online bool `protobuf:"varint,4,opt,name=online,proto3" json:"online,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Meta) Descriptor ¶
func (*Meta) GetLastUpdated ¶
func (*Meta) GetLocation ¶
func (*Meta) GetUserAgent ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) XXX_DiscardUnknown ¶
func (m *Meta) XXX_DiscardUnknown()
func (*Meta) XXX_Unmarshal ¶
type MetaIndex ¶
type MetaIndex struct { Online uint32 `protobuf:"varint,1,opt,name=online,proto3" json:"online,omitempty"` Offline uint32 `protobuf:"varint,2,opt,name=offline,proto3" json:"offline,omitempty"` Info map[string]*Meta `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MetaIndex) Descriptor ¶
func (*MetaIndex) GetOffline ¶
func (*MetaIndex) ProtoMessage ¶
func (*MetaIndex) ProtoMessage()
func (*MetaIndex) XXX_DiscardUnknown ¶
func (m *MetaIndex) XXX_DiscardUnknown()
func (*MetaIndex) XXX_Marshal ¶
func (*MetaIndex) XXX_Unmarshal ¶
type Power ¶
type Power struct { Power uint64 `protobuf:"varint,1,opt,name=power,proto3" json:"power,omitempty"` Relative float32 `protobuf:"fixed32,2,opt,name=relative,proto3" json:"relative,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Power) Descriptor ¶
func (*Power) GetRelative ¶
func (*Power) ProtoMessage ¶
func (*Power) ProtoMessage()
func (*Power) XXX_DiscardUnknown ¶
func (m *Power) XXX_DiscardUnknown()
func (*Power) XXX_Marshal ¶
func (*Power) XXX_Unmarshal ¶
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) Get ¶
func (*UnimplementedAPIServer) Get(ctx context.Context, req *GetRequest) (*GetReply, error)
Click to show internal directories.
Click to hide internal directories.