Documentation
¶
Index ¶
- Variables
- type Bootstrap
- type Data
- type Data_Etcd
- func (*Data_Etcd) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Etcd) GetDialTimeout() int64
- func (x *Data_Etcd) GetEndPoints() []string
- func (x *Data_Etcd) GetPassword() string
- func (x *Data_Etcd) GetUser() string
- func (*Data_Etcd) ProtoMessage()
- func (x *Data_Etcd) ProtoReflect() protoreflect.Message
- func (x *Data_Etcd) Reset()
- func (x *Data_Etcd) String() string
- type SpiderConfig
- type SpiderParameter
- func (*SpiderParameter) Descriptor() ([]byte, []int)deprecated
- func (x *SpiderParameter) GetAnimeMagnetTimeout() int64
- func (x *SpiderParameter) GetInterval() int64
- func (x *SpiderParameter) GetMethod() string
- func (x *SpiderParameter) GetProxy() string
- func (x *SpiderParameter) GetType() string
- func (x *SpiderParameter) GetUrl() string
- func (x *SpiderParameter) GetUserAgent() string
- func (*SpiderParameter) ProtoMessage()
- func (x *SpiderParameter) ProtoReflect() protoreflect.Message
- func (x *SpiderParameter) Reset()
- func (x *SpiderParameter) String() string
- type SpiderServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct { Data *Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { Etcd *Data_Etcd `protobuf:"bytes,1,opt,name=etcd,proto3" json:"etcd,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Data_Etcd ¶
type Data_Etcd struct { EndPoints []string `protobuf:"bytes,1,rep,name=end_points,json=endPoints,proto3" json:"end_points,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` DialTimeout int64 `protobuf:"varint,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // contains filtered or unexported fields }
func (*Data_Etcd) Descriptor
deprecated
func (*Data_Etcd) GetDialTimeout ¶
func (*Data_Etcd) GetEndPoints ¶
func (*Data_Etcd) GetPassword ¶
func (*Data_Etcd) ProtoMessage ¶
func (*Data_Etcd) ProtoMessage()
func (*Data_Etcd) ProtoReflect ¶
func (x *Data_Etcd) ProtoReflect() protoreflect.Message
type SpiderConfig ¶
type SpiderConfig struct {
// contains filtered or unexported fields
}
func NewSpiderConfig ¶
func NewSpiderConfig(componentName config.ComponentName, componentType config.ComponentType, etcdCli *etcd.Client, logger log.Logger) (*SpiderConfig, error)
func (*SpiderConfig) GetConfig ¶
func (s *SpiderConfig) GetConfig() *SpiderParameter
type SpiderParameter ¶
type SpiderParameter struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Proxy string `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` Interval int64 `protobuf:"varint,5,opt,name=interval,proto3" json:"interval,omitempty"` UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` AnimeMagnetTimeout int64 `protobuf:"varint,7,opt,name=anime_magnet_timeout,json=animeMagnetTimeout,proto3" json:"anime_magnet_timeout,omitempty"` // contains filtered or unexported fields }
func (*SpiderParameter) Descriptor
deprecated
func (*SpiderParameter) Descriptor() ([]byte, []int)
Deprecated: Use SpiderParameter.ProtoReflect.Descriptor instead.
func (*SpiderParameter) GetAnimeMagnetTimeout ¶
func (x *SpiderParameter) GetAnimeMagnetTimeout() int64
func (*SpiderParameter) GetInterval ¶
func (x *SpiderParameter) GetInterval() int64
func (*SpiderParameter) GetMethod ¶
func (x *SpiderParameter) GetMethod() string
func (*SpiderParameter) GetProxy ¶
func (x *SpiderParameter) GetProxy() string
func (*SpiderParameter) GetType ¶
func (x *SpiderParameter) GetType() string
func (*SpiderParameter) GetUrl ¶
func (x *SpiderParameter) GetUrl() string
func (*SpiderParameter) GetUserAgent ¶
func (x *SpiderParameter) GetUserAgent() string
func (*SpiderParameter) ProtoMessage ¶
func (*SpiderParameter) ProtoMessage()
func (*SpiderParameter) ProtoReflect ¶
func (x *SpiderParameter) ProtoReflect() protoreflect.Message
func (*SpiderParameter) Reset ¶
func (x *SpiderParameter) Reset()
func (*SpiderParameter) String ¶
func (x *SpiderParameter) String() string
type SpiderServerConfig ¶
type SpiderServerConfig struct { Http *config.HttpServerConfig Grpc *config.GrpcServerConfig Redis *config.ReidsConfig }
func NewSpiderServerConfig ¶
func NewSpiderServerConfig(http *config.HttpServerConfig, grpc *config.GrpcServerConfig, redis *config.ReidsConfig) *SpiderServerConfig
Click to show internal directories.
Click to hide internal directories.