conf

package
v0.0.0-...-2004213 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

func (x *Bootstrap) ProtoReflect() protoreflect.Message

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetEtcd

func (x *Data) GetEtcd() *Data_Etcd

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

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

Deprecated: Use Data_Etcd.ProtoReflect.Descriptor instead.

func (*Data_Etcd) GetDialTimeout

func (x *Data_Etcd) GetDialTimeout() int64

func (*Data_Etcd) GetEndPoints

func (x *Data_Etcd) GetEndPoints() []string

func (*Data_Etcd) GetPassword

func (x *Data_Etcd) GetPassword() string

func (*Data_Etcd) GetUser

func (x *Data_Etcd) GetUser() string

func (*Data_Etcd) ProtoMessage

func (*Data_Etcd) ProtoMessage()

func (*Data_Etcd) ProtoReflect

func (x *Data_Etcd) ProtoReflect() protoreflect.Message

func (*Data_Etcd) Reset

func (x *Data_Etcd) Reset()

func (*Data_Etcd) String

func (x *Data_Etcd) String() string

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳