Documentation
¶
Index ¶
- Variables
- func RegisterProxyPoolServer(s *grpc.Server, srv ProxyPoolServer)
- type Protocol
- type Proxies
- func (*Proxies) Descriptor() ([]byte, []int)
- func (m *Proxies) GetCounts() uint64
- func (m *Proxies) GetProxies() []*Proxy
- func (*Proxies) ProtoMessage()
- func (m *Proxies) Reset()
- func (m *Proxies) String() string
- func (m *Proxies) XXX_DiscardUnknown()
- func (m *Proxies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proxies) XXX_Merge(src proto.Message)
- func (m *Proxies) XXX_Size() int
- func (m *Proxies) XXX_Unmarshal(b []byte) error
- type Proxy
- func (*Proxy) Descriptor() ([]byte, []int)
- func (m *Proxy) GetAddress() string
- func (m *Proxy) GetFrom() string
- func (m *Proxy) GetLastCheck() *timestamp.Timestamp
- func (m *Proxy) GetPort() uint64
- func (m *Proxy) GetProtocol() Protocol
- func (m *Proxy) GetSpeed() uint64
- func (*Proxy) ProtoMessage()
- func (m *Proxy) Reset()
- func (m *Proxy) String() string
- func (m *Proxy) XXX_DiscardUnknown()
- func (m *Proxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proxy) XXX_Merge(src proto.Message)
- func (m *Proxy) XXX_Size() int
- func (m *Proxy) XXX_Unmarshal(b []byte) error
- type ProxyPoolClient
- type ProxyPoolServer
- type UnimplementedProxyPoolServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Protocol_name = map[int32]string{
0: "UNKNOWN",
1: "HTTPS",
2: "SOCKS",
3: "HTTP",
}
View Source
var Protocol_value = map[string]int32{
"UNKNOWN": 0,
"HTTPS": 1,
"SOCKS": 2,
"HTTP": 3,
}
Functions ¶
func RegisterProxyPoolServer ¶
func RegisterProxyPoolServer(s *grpc.Server, srv ProxyPoolServer)
Types ¶
type Proxies ¶
type Proxies struct { Counts uint64 `protobuf:"varint,1,opt,name=Counts,json=counts,proto3" json:"Counts,omitempty"` Proxies []*Proxy `protobuf:"bytes,2,rep,name=proxies,proto3" json:"proxies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proxies) Descriptor ¶
func (*Proxies) GetProxies ¶
func (*Proxies) ProtoMessage ¶
func (*Proxies) ProtoMessage()
func (*Proxies) XXX_DiscardUnknown ¶
func (m *Proxies) XXX_DiscardUnknown()
func (*Proxies) XXX_Marshal ¶
func (*Proxies) XXX_Unmarshal ¶
type Proxy ¶
type Proxy struct { Address string `protobuf:"bytes,1,opt,name=Address,json=address,proto3" json:"Address,omitempty"` Port uint64 `protobuf:"varint,2,opt,name=Port,json=port,proto3" json:"Port,omitempty"` Protocol Protocol `protobuf:"varint,3,opt,name=Protocol,json=protocol,proto3,enum=rpc.Protocol" json:"Protocol,omitempty"` LastCheck *timestamp.Timestamp `protobuf:"bytes,4,opt,name=LastCheck,json=last_check,proto3" json:"LastCheck,omitempty"` Speed uint64 `protobuf:"varint,5,opt,name=Speed,json=speed,proto3" json:"Speed,omitempty"` From string `protobuf:"bytes,6,opt,name=From,json=from,proto3" json:"From,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proxy) Descriptor ¶
func (*Proxy) GetAddress ¶
func (*Proxy) GetLastCheck ¶
func (*Proxy) GetProtocol ¶
func (*Proxy) ProtoMessage ¶
func (*Proxy) ProtoMessage()
func (*Proxy) XXX_DiscardUnknown ¶
func (m *Proxy) XXX_DiscardUnknown()
func (*Proxy) XXX_Marshal ¶
func (*Proxy) XXX_Unmarshal ¶
type ProxyPoolClient ¶
type ProxyPoolClient interface { Add(ctx context.Context, in *Proxy, opts ...grpc.CallOption) (*empty.Empty, error) Random(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Proxy, error) All(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Proxies, error) }
ProxyPoolClient is the client API for ProxyPool service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProxyPoolClient ¶
func NewProxyPoolClient(cc *grpc.ClientConn) ProxyPoolClient
type ProxyPoolServer ¶
type ProxyPoolServer interface { Add(context.Context, *Proxy) (*empty.Empty, error) Random(context.Context, *empty.Empty) (*Proxy, error) All(context.Context, *empty.Empty) (*Proxies, error) }
ProxyPoolServer is the server API for ProxyPool service.
Click to show internal directories.
Click to hide internal directories.