Documentation
¶
Index ¶
- Variables
- func LegacyDebugMode() bool
- func SetLegacyDebugMode(enabled bool)
- type Admin
- type Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetAdmin() *Admin
- func (x *Application) GetDevice() *Device
- func (x *Application) GetEmail() *EmailAuth
- func (x *Application) GetInvite() *Invite
- func (x *Application) GetMobile() *MobileAuth
- func (x *Application) GetNode() *Node
- func (x *Application) GetRegister() *Register
- func (x *Application) GetSite() *Site
- func (x *Application) GetSubscribe() *Subscribe
- func (x *Application) GetVerify() *Verify
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetApp() *Application
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetDebug() bool
- func (x *Bootstrap) GetServer() *Server
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetDriver() string
- func (x *Data_Database) GetSource() string
- func (*Data_Database) ProtoMessage()
- func (x *Data_Database) ProtoReflect() protoreflect.Message
- func (x *Data_Database) Reset()
- func (x *Data_Database) String() string
- type Data_Redis
- func (*Data_Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Redis) GetAddr() string
- func (x *Data_Redis) GetDb() int32
- func (x *Data_Redis) GetMinIdleConns() int32
- func (x *Data_Redis) GetNetwork() string
- func (x *Data_Redis) GetPassword() string
- func (x *Data_Redis) GetPoolSize() int32
- func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
- func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration
- func (*Data_Redis) ProtoMessage()
- func (x *Data_Redis) ProtoReflect() protoreflect.Message
- func (x *Data_Redis) Reset()
- func (x *Data_Redis) String() string
- type Device
- type EmailAuth
- func (*EmailAuth) Descriptor() ([]byte, []int)deprecated
- func (x *EmailAuth) GetDomainSuffixList() string
- func (x *EmailAuth) GetEnable() bool
- func (x *EmailAuth) GetEnableDomainSuffix() bool
- func (x *EmailAuth) GetEnableVerify() bool
- func (*EmailAuth) ProtoMessage()
- func (x *EmailAuth) ProtoReflect() protoreflect.Message
- func (x *EmailAuth) Reset()
- func (x *EmailAuth) String() string
- type Invite
- func (*Invite) Descriptor() ([]byte, []int)deprecated
- func (x *Invite) GetForcedInvite() bool
- func (x *Invite) GetOnlyFirstPurchase() bool
- func (x *Invite) GetReferralPercentage() int64
- func (*Invite) ProtoMessage()
- func (x *Invite) ProtoReflect() protoreflect.Message
- func (x *Invite) Reset()
- func (x *Invite) String() string
- type MobileAuth
- func (*MobileAuth) Descriptor() ([]byte, []int)deprecated
- func (x *MobileAuth) GetEnable() bool
- func (x *MobileAuth) GetEnableWhitelist() bool
- func (x *MobileAuth) GetWhitelist() []string
- func (*MobileAuth) ProtoMessage()
- func (x *MobileAuth) ProtoReflect() protoreflect.Message
- func (x *MobileAuth) Reset()
- func (x *MobileAuth) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetBlock() []string
- func (x *Node) GetDns() []*NodeDNS
- func (x *Node) GetIpStrategy() string
- func (x *Node) GetNodePullInterval() int64
- func (x *Node) GetNodePushInterval() int64
- func (x *Node) GetNodeSecret() string
- func (x *Node) GetOutbound() []*NodeOutbound
- func (x *Node) GetTrafficReportThreshold() int64
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeDNS
- func (*NodeDNS) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDNS) GetAddress() string
- func (x *NodeDNS) GetDomains() []string
- func (x *NodeDNS) GetProto() string
- func (*NodeDNS) ProtoMessage()
- func (x *NodeDNS) ProtoReflect() protoreflect.Message
- func (x *NodeDNS) Reset()
- func (x *NodeDNS) String() string
- type NodeOutbound
- func (*NodeOutbound) Descriptor() ([]byte, []int)deprecated
- func (x *NodeOutbound) GetAddress() string
- func (x *NodeOutbound) GetName() string
- func (x *NodeOutbound) GetPassword() string
- func (x *NodeOutbound) GetPort() int64
- func (x *NodeOutbound) GetProtocol() string
- func (x *NodeOutbound) GetRules() []string
- func (*NodeOutbound) ProtoMessage()
- func (x *NodeOutbound) ProtoReflect() protoreflect.Message
- func (x *NodeOutbound) Reset()
- func (x *NodeOutbound) String() string
- type Register
- func (*Register) Descriptor() ([]byte, []int)deprecated
- func (x *Register) GetEnableIpRegisterLimit() bool
- func (x *Register) GetEnableTrial() bool
- func (x *Register) GetIpRegisterLimit() int64
- func (x *Register) GetIpRegisterLimitDuration() int64
- func (x *Register) GetStopRegister() bool
- func (x *Register) GetTrialSubscribe() int64
- func (x *Register) GetTrialTime() int64
- func (x *Register) GetTrialTimeUnit() string
- func (*Register) ProtoMessage()
- func (x *Register) ProtoReflect() protoreflect.Message
- func (x *Register) Reset()
- func (x *Register) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetAuth() *Server_Auth
- func (x *Server) GetCors() *Server_CORS
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type Server_Auth
- func (*Server_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *Server_Auth) GetEnableJwt() bool
- func (x *Server_Auth) GetJwtSecret() string
- func (x *Server_Auth) GetNoAuthPaths() []string
- func (*Server_Auth) ProtoMessage()
- func (x *Server_Auth) ProtoReflect() protoreflect.Message
- func (x *Server_Auth) Reset()
- func (x *Server_Auth) String() string
- type Server_CORS
- func (*Server_CORS) Descriptor() ([]byte, []int)deprecated
- func (x *Server_CORS) GetAllowCredentials() bool
- func (x *Server_CORS) GetAllowedHeaders() []string
- func (x *Server_CORS) GetAllowedMethods() []string
- func (x *Server_CORS) GetAllowedOrigins() []string
- func (x *Server_CORS) GetEnable() bool
- func (x *Server_CORS) GetExposedHeaders() []string
- func (x *Server_CORS) GetMaxAge() int32
- func (*Server_CORS) ProtoMessage()
- func (x *Server_CORS) ProtoReflect() protoreflect.Message
- func (x *Server_CORS) Reset()
- func (x *Server_CORS) String() string
- type Server_GRPC
- func (*Server_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *Server_GRPC) GetAddr() string
- func (x *Server_GRPC) GetNetwork() string
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration
- func (*Server_GRPC) ProtoMessage()
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message
- func (x *Server_GRPC) Reset()
- func (x *Server_GRPC) String() string
- type Server_HTTP
- func (*Server_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *Server_HTTP) GetAddr() string
- func (x *Server_HTTP) GetNetwork() string
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration
- func (*Server_HTTP) ProtoMessage()
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message
- func (x *Server_HTTP) Reset()
- func (x *Server_HTTP) String() string
- type Site
- func (*Site) Descriptor() ([]byte, []int)deprecated
- func (x *Site) GetCustomData() string
- func (x *Site) GetCustomHtml() string
- func (x *Site) GetHost() string
- func (x *Site) GetKeywords() string
- func (x *Site) GetSiteDesc() string
- func (x *Site) GetSiteLogo() string
- func (x *Site) GetSiteName() string
- func (*Site) ProtoMessage()
- func (x *Site) ProtoReflect() protoreflect.Message
- func (x *Site) Reset()
- func (x *Site) String() string
- type Subscribe
- func (*Subscribe) Descriptor() ([]byte, []int)deprecated
- func (x *Subscribe) GetPanDomain() bool
- func (x *Subscribe) GetSingleModel() bool
- func (x *Subscribe) GetSubscribeDomain() string
- func (x *Subscribe) GetSubscribePath() string
- func (x *Subscribe) GetUserAgentLimit() bool
- func (x *Subscribe) GetUserAgentList() string
- func (*Subscribe) ProtoMessage()
- func (x *Subscribe) ProtoReflect() protoreflect.Message
- func (x *Subscribe) Reset()
- func (x *Subscribe) String() string
- type Verify
- func (*Verify) Descriptor() ([]byte, []int)deprecated
- func (x *Verify) GetEnableLoginVerify() bool
- func (x *Verify) GetEnableRegisterVerify() bool
- func (x *Verify) GetEnableResetPasswordVerify() bool
- func (x *Verify) GetTurnstileSiteKey() string
- func (*Verify) ProtoMessage()
- func (x *Verify) ProtoReflect() protoreflect.Message
- func (x *Verify) Reset()
- func (x *Verify) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
func LegacyDebugMode ¶
func LegacyDebugMode() bool
func SetLegacyDebugMode ¶
func SetLegacyDebugMode(enabled bool)
Types ¶
type Admin ¶
type Admin struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Algo string `protobuf:"bytes,3,opt,name=algo,proto3" json:"algo,omitempty"`
// contains filtered or unexported fields
}
func (*Admin) Descriptor
deprecated
func (*Admin) GetPassword ¶
func (*Admin) ProtoMessage ¶
func (*Admin) ProtoMessage()
func (*Admin) ProtoReflect ¶
func (x *Admin) ProtoReflect() protoreflect.Message
type Application ¶
type Application struct {
Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"`
Verify *Verify `protobuf:"bytes,2,opt,name=verify,proto3" json:"verify,omitempty"`
Mobile *MobileAuth `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
Email *EmailAuth `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
Register *Register `protobuf:"bytes,5,opt,name=register,proto3" json:"register,omitempty"`
Invite *Invite `protobuf:"bytes,6,opt,name=invite,proto3" json:"invite,omitempty"`
Subscribe *Subscribe `protobuf:"bytes,7,opt,name=subscribe,proto3" json:"subscribe,omitempty"`
Admin *Admin `protobuf:"bytes,8,opt,name=admin,proto3" json:"admin,omitempty"`
Device *Device `protobuf:"bytes,9,opt,name=device,proto3" json:"device,omitempty"`
Node *Node `protobuf:"bytes,10,opt,name=node,proto3" json:"node,omitempty"`
// contains filtered or unexported fields
}
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetAdmin ¶
func (x *Application) GetAdmin() *Admin
func (*Application) GetDevice ¶
func (x *Application) GetDevice() *Device
func (*Application) GetEmail ¶
func (x *Application) GetEmail() *EmailAuth
func (*Application) GetInvite ¶
func (x *Application) GetInvite() *Invite
func (*Application) GetMobile ¶
func (x *Application) GetMobile() *MobileAuth
func (*Application) GetNode ¶
func (x *Application) GetNode() *Node
func (*Application) GetRegister ¶
func (x *Application) GetRegister() *Register
func (*Application) GetSite ¶
func (x *Application) GetSite() *Site
func (*Application) GetSubscribe ¶
func (x *Application) GetSubscribe() *Subscribe
func (*Application) GetVerify ¶
func (x *Application) GetVerify() *Verify
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
type Bootstrap ¶
type Bootstrap struct {
Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
App *Application `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
Debug bool `protobuf:"varint,4,opt,name=debug,proto3" json:"debug,omitempty"`
// contains filtered or unexported fields
}
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetApp ¶
func (x *Bootstrap) GetApp() *Application
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct {
Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
Redis *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
// contains filtered or unexported fields
}
func (*Data) Descriptor
deprecated
func (*Data) GetDatabase ¶
func (x *Data) GetDatabase() *Data_Database
func (*Data) GetRedis ¶
func (x *Data) GetRedis() *Data_Redis
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Data_Database ¶
type Data_Database struct {
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// contains filtered or unexported fields
}
func (*Data_Database) Descriptor
deprecated
func (*Data_Database) Descriptor() ([]byte, []int)
Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.
func (*Data_Database) GetDriver ¶
func (x *Data_Database) GetDriver() string
func (*Data_Database) GetSource ¶
func (x *Data_Database) GetSource() string
func (*Data_Database) ProtoMessage ¶
func (*Data_Database) ProtoMessage()
func (*Data_Database) ProtoReflect ¶
func (x *Data_Database) ProtoReflect() protoreflect.Message
func (*Data_Database) Reset ¶
func (x *Data_Database) Reset()
func (*Data_Database) String ¶
func (x *Data_Database) String() string
type Data_Redis ¶
type Data_Redis struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
ReadTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
Db int32 `protobuf:"varint,6,opt,name=db,proto3" json:"db,omitempty"`
PoolSize int32 `protobuf:"varint,7,opt,name=pool_size,json=poolSize,proto3" json:"pool_size,omitempty"`
MinIdleConns int32 `protobuf:"varint,8,opt,name=min_idle_conns,json=minIdleConns,proto3" json:"min_idle_conns,omitempty"`
// contains filtered or unexported fields
}
func (*Data_Redis) Descriptor
deprecated
func (*Data_Redis) Descriptor() ([]byte, []int)
Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.
func (*Data_Redis) GetAddr ¶
func (x *Data_Redis) GetAddr() string
func (*Data_Redis) GetDb ¶
func (x *Data_Redis) GetDb() int32
func (*Data_Redis) GetMinIdleConns ¶
func (x *Data_Redis) GetMinIdleConns() int32
func (*Data_Redis) GetNetwork ¶
func (x *Data_Redis) GetNetwork() string
func (*Data_Redis) GetPassword ¶
func (x *Data_Redis) GetPassword() string
func (*Data_Redis) GetPoolSize ¶
func (x *Data_Redis) GetPoolSize() int32
func (*Data_Redis) GetReadTimeout ¶
func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
func (*Data_Redis) GetWriteTimeout ¶
func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration
func (*Data_Redis) ProtoMessage ¶
func (*Data_Redis) ProtoMessage()
func (*Data_Redis) ProtoReflect ¶
func (x *Data_Redis) ProtoReflect() protoreflect.Message
func (*Data_Redis) Reset ¶
func (x *Data_Redis) Reset()
func (*Data_Redis) String ¶
func (x *Data_Redis) String() string
type Device ¶
type Device struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
SecuritySecret string `protobuf:"bytes,2,opt,name=security_secret,json=securitySecret,proto3" json:"security_secret,omitempty"`
// contains filtered or unexported fields
}
func (*Device) Descriptor
deprecated
func (*Device) GetSecuritySecret ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type EmailAuth ¶
type EmailAuth struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
EnableVerify bool `protobuf:"varint,2,opt,name=enable_verify,json=enableVerify,proto3" json:"enable_verify,omitempty"`
EnableDomainSuffix bool `protobuf:"varint,3,opt,name=enable_domain_suffix,json=enableDomainSuffix,proto3" json:"enable_domain_suffix,omitempty"`
DomainSuffixList string `protobuf:"bytes,4,opt,name=domain_suffix_list,json=domainSuffixList,proto3" json:"domain_suffix_list,omitempty"`
// contains filtered or unexported fields
}
func (*EmailAuth) Descriptor
deprecated
func (*EmailAuth) GetDomainSuffixList ¶
func (*EmailAuth) GetEnableDomainSuffix ¶
func (*EmailAuth) GetEnableVerify ¶
func (*EmailAuth) ProtoMessage ¶
func (*EmailAuth) ProtoMessage()
func (*EmailAuth) ProtoReflect ¶
func (x *EmailAuth) ProtoReflect() protoreflect.Message
type Invite ¶
type Invite struct {
ForcedInvite bool `protobuf:"varint,1,opt,name=forced_invite,json=forcedInvite,proto3" json:"forced_invite,omitempty"`
ReferralPercentage int64 `protobuf:"varint,2,opt,name=referral_percentage,json=referralPercentage,proto3" json:"referral_percentage,omitempty"`
OnlyFirstPurchase bool `protobuf:"varint,3,opt,name=only_first_purchase,json=onlyFirstPurchase,proto3" json:"only_first_purchase,omitempty"`
// contains filtered or unexported fields
}
func (*Invite) Descriptor
deprecated
func (*Invite) GetForcedInvite ¶
func (*Invite) GetOnlyFirstPurchase ¶
func (*Invite) GetReferralPercentage ¶
func (*Invite) ProtoMessage ¶
func (*Invite) ProtoMessage()
func (*Invite) ProtoReflect ¶
func (x *Invite) ProtoReflect() protoreflect.Message
type MobileAuth ¶
type MobileAuth struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
EnableWhitelist bool `protobuf:"varint,2,opt,name=enable_whitelist,json=enableWhitelist,proto3" json:"enable_whitelist,omitempty"`
Whitelist []string `protobuf:"bytes,3,rep,name=whitelist,proto3" json:"whitelist,omitempty"`
// contains filtered or unexported fields
}
func (*MobileAuth) Descriptor
deprecated
func (*MobileAuth) Descriptor() ([]byte, []int)
Deprecated: Use MobileAuth.ProtoReflect.Descriptor instead.
func (*MobileAuth) GetEnable ¶
func (x *MobileAuth) GetEnable() bool
func (*MobileAuth) GetEnableWhitelist ¶
func (x *MobileAuth) GetEnableWhitelist() bool
func (*MobileAuth) GetWhitelist ¶
func (x *MobileAuth) GetWhitelist() []string
func (*MobileAuth) ProtoMessage ¶
func (*MobileAuth) ProtoMessage()
func (*MobileAuth) ProtoReflect ¶
func (x *MobileAuth) ProtoReflect() protoreflect.Message
func (*MobileAuth) Reset ¶
func (x *MobileAuth) Reset()
func (*MobileAuth) String ¶
func (x *MobileAuth) String() string
type Node ¶
type Node struct {
NodeSecret string `protobuf:"bytes,1,opt,name=node_secret,json=nodeSecret,proto3" json:"node_secret,omitempty"`
NodePullInterval int64 `protobuf:"varint,2,opt,name=node_pull_interval,json=nodePullInterval,proto3" json:"node_pull_interval,omitempty"`
NodePushInterval int64 `protobuf:"varint,3,opt,name=node_push_interval,json=nodePushInterval,proto3" json:"node_push_interval,omitempty"`
TrafficReportThreshold int64 `` /* 130-byte string literal not displayed */
IpStrategy string `protobuf:"bytes,5,opt,name=ip_strategy,json=ipStrategy,proto3" json:"ip_strategy,omitempty"`
Dns []*NodeDNS `protobuf:"bytes,6,rep,name=dns,proto3" json:"dns,omitempty"`
Block []string `protobuf:"bytes,7,rep,name=block,proto3" json:"block,omitempty"`
Outbound []*NodeOutbound `protobuf:"bytes,8,rep,name=outbound,proto3" json:"outbound,omitempty"`
// contains filtered or unexported fields
}
func (*Node) Descriptor
deprecated
func (*Node) GetIpStrategy ¶
func (*Node) GetNodePullInterval ¶
func (*Node) GetNodePushInterval ¶
func (*Node) GetNodeSecret ¶
func (*Node) GetOutbound ¶
func (x *Node) GetOutbound() []*NodeOutbound
func (*Node) GetTrafficReportThreshold ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeDNS ¶
type NodeDNS struct {
Proto string `protobuf:"bytes,1,opt,name=proto,proto3" json:"proto,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Domains []string `protobuf:"bytes,3,rep,name=domains,proto3" json:"domains,omitempty"`
// contains filtered or unexported fields
}
func (*NodeDNS) Descriptor
deprecated
func (*NodeDNS) GetAddress ¶
func (*NodeDNS) GetDomains ¶
func (*NodeDNS) ProtoMessage ¶
func (*NodeDNS) ProtoMessage()
func (*NodeDNS) ProtoReflect ¶
func (x *NodeDNS) ProtoReflect() protoreflect.Message
type NodeOutbound ¶
type NodeOutbound struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
Rules []string `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*NodeOutbound) Descriptor
deprecated
func (*NodeOutbound) Descriptor() ([]byte, []int)
Deprecated: Use NodeOutbound.ProtoReflect.Descriptor instead.
func (*NodeOutbound) GetAddress ¶
func (x *NodeOutbound) GetAddress() string
func (*NodeOutbound) GetName ¶
func (x *NodeOutbound) GetName() string
func (*NodeOutbound) GetPassword ¶
func (x *NodeOutbound) GetPassword() string
func (*NodeOutbound) GetPort ¶
func (x *NodeOutbound) GetPort() int64
func (*NodeOutbound) GetProtocol ¶
func (x *NodeOutbound) GetProtocol() string
func (*NodeOutbound) GetRules ¶
func (x *NodeOutbound) GetRules() []string
func (*NodeOutbound) ProtoMessage ¶
func (*NodeOutbound) ProtoMessage()
func (*NodeOutbound) ProtoReflect ¶
func (x *NodeOutbound) ProtoReflect() protoreflect.Message
func (*NodeOutbound) Reset ¶
func (x *NodeOutbound) Reset()
func (*NodeOutbound) String ¶
func (x *NodeOutbound) String() string
type Register ¶
type Register struct {
StopRegister bool `protobuf:"varint,1,opt,name=stop_register,json=stopRegister,proto3" json:"stop_register,omitempty"`
EnableIpRegisterLimit bool `` /* 129-byte string literal not displayed */
IpRegisterLimit int64 `protobuf:"varint,3,opt,name=ip_register_limit,json=ipRegisterLimit,proto3" json:"ip_register_limit,omitempty"`
IpRegisterLimitDuration int64 `` /* 135-byte string literal not displayed */
// Trial subscription settings
EnableTrial bool `protobuf:"varint,5,opt,name=enable_trial,json=enableTrial,proto3" json:"enable_trial,omitempty"`
TrialSubscribe int64 `protobuf:"varint,6,opt,name=trial_subscribe,json=trialSubscribe,proto3" json:"trial_subscribe,omitempty"`
TrialTimeUnit string `protobuf:"bytes,7,opt,name=trial_time_unit,json=trialTimeUnit,proto3" json:"trial_time_unit,omitempty"`
TrialTime int64 `protobuf:"varint,8,opt,name=trial_time,json=trialTime,proto3" json:"trial_time,omitempty"`
// contains filtered or unexported fields
}
func (*Register) Descriptor
deprecated
func (*Register) GetEnableIpRegisterLimit ¶
func (*Register) GetEnableTrial ¶
func (*Register) GetIpRegisterLimit ¶
func (*Register) GetIpRegisterLimitDuration ¶
func (*Register) GetStopRegister ¶
func (*Register) GetTrialSubscribe ¶
func (*Register) GetTrialTime ¶
func (*Register) GetTrialTimeUnit ¶
func (*Register) ProtoMessage ¶
func (*Register) ProtoMessage()
func (*Register) ProtoReflect ¶
func (x *Register) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct {
Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
Auth *Server_Auth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
Cors *Server_CORS `protobuf:"bytes,4,opt,name=cors,proto3" json:"cors,omitempty"`
// contains filtered or unexported fields
}
func (*Server) Descriptor
deprecated
func (*Server) GetAuth ¶
func (x *Server) GetAuth() *Server_Auth
func (*Server) GetCors ¶
func (x *Server) GetCors() *Server_CORS
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_GRPC
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_HTTP
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Server_Auth ¶
type Server_Auth struct {
// 无需认证的路径前缀列表
NoAuthPaths []string `protobuf:"bytes,1,rep,name=no_auth_paths,json=noAuthPaths,proto3" json:"no_auth_paths,omitempty"`
// 是否启用JWT认证
EnableJwt bool `protobuf:"varint,2,opt,name=enable_jwt,json=enableJwt,proto3" json:"enable_jwt,omitempty"`
// JWT密钥
JwtSecret string `protobuf:"bytes,3,opt,name=jwt_secret,json=jwtSecret,proto3" json:"jwt_secret,omitempty"`
// contains filtered or unexported fields
}
func (*Server_Auth) Descriptor
deprecated
func (*Server_Auth) Descriptor() ([]byte, []int)
Deprecated: Use Server_Auth.ProtoReflect.Descriptor instead.
func (*Server_Auth) GetEnableJwt ¶
func (x *Server_Auth) GetEnableJwt() bool
func (*Server_Auth) GetJwtSecret ¶
func (x *Server_Auth) GetJwtSecret() string
func (*Server_Auth) GetNoAuthPaths ¶
func (x *Server_Auth) GetNoAuthPaths() []string
func (*Server_Auth) ProtoMessage ¶
func (*Server_Auth) ProtoMessage()
func (*Server_Auth) ProtoReflect ¶
func (x *Server_Auth) ProtoReflect() protoreflect.Message
func (*Server_Auth) Reset ¶
func (x *Server_Auth) Reset()
func (*Server_Auth) String ¶
func (x *Server_Auth) String() string
type Server_CORS ¶
type Server_CORS struct {
// 是否启用CORS
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// 允许的源
AllowedOrigins []string `protobuf:"bytes,2,rep,name=allowed_origins,json=allowedOrigins,proto3" json:"allowed_origins,omitempty"`
// 允许的方法
AllowedMethods []string `protobuf:"bytes,3,rep,name=allowed_methods,json=allowedMethods,proto3" json:"allowed_methods,omitempty"`
// 允许的头部
AllowedHeaders []string `protobuf:"bytes,4,rep,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"`
// 暴露的头部
ExposedHeaders []string `protobuf:"bytes,5,rep,name=exposed_headers,json=exposedHeaders,proto3" json:"exposed_headers,omitempty"`
// 是否允许凭证
AllowCredentials bool `protobuf:"varint,6,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
// 预检请求缓存时间
MaxAge int32 `protobuf:"varint,7,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
// contains filtered or unexported fields
}
func (*Server_CORS) Descriptor
deprecated
func (*Server_CORS) Descriptor() ([]byte, []int)
Deprecated: Use Server_CORS.ProtoReflect.Descriptor instead.
func (*Server_CORS) GetAllowCredentials ¶
func (x *Server_CORS) GetAllowCredentials() bool
func (*Server_CORS) GetAllowedHeaders ¶
func (x *Server_CORS) GetAllowedHeaders() []string
func (*Server_CORS) GetAllowedMethods ¶
func (x *Server_CORS) GetAllowedMethods() []string
func (*Server_CORS) GetAllowedOrigins ¶
func (x *Server_CORS) GetAllowedOrigins() []string
func (*Server_CORS) GetEnable ¶
func (x *Server_CORS) GetEnable() bool
func (*Server_CORS) GetExposedHeaders ¶
func (x *Server_CORS) GetExposedHeaders() []string
func (*Server_CORS) GetMaxAge ¶
func (x *Server_CORS) GetMaxAge() int32
func (*Server_CORS) ProtoMessage ¶
func (*Server_CORS) ProtoMessage()
func (*Server_CORS) ProtoReflect ¶
func (x *Server_CORS) ProtoReflect() protoreflect.Message
func (*Server_CORS) Reset ¶
func (x *Server_CORS) Reset()
func (*Server_CORS) String ¶
func (x *Server_CORS) String() string
type Server_GRPC ¶
type Server_GRPC struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
func (*Server_GRPC) Descriptor
deprecated
func (*Server_GRPC) Descriptor() ([]byte, []int)
Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
func (*Server_GRPC) GetAddr ¶
func (x *Server_GRPC) GetAddr() string
func (*Server_GRPC) GetNetwork ¶
func (x *Server_GRPC) GetNetwork() string
func (*Server_GRPC) GetTimeout ¶
func (x *Server_GRPC) GetTimeout() *durationpb.Duration
func (*Server_GRPC) ProtoMessage ¶
func (*Server_GRPC) ProtoMessage()
func (*Server_GRPC) ProtoReflect ¶
func (x *Server_GRPC) ProtoReflect() protoreflect.Message
func (*Server_GRPC) Reset ¶
func (x *Server_GRPC) Reset()
func (*Server_GRPC) String ¶
func (x *Server_GRPC) String() string
type Server_HTTP ¶
type Server_HTTP struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
func (*Server_HTTP) Descriptor
deprecated
func (*Server_HTTP) Descriptor() ([]byte, []int)
Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
func (*Server_HTTP) GetAddr ¶
func (x *Server_HTTP) GetAddr() string
func (*Server_HTTP) GetNetwork ¶
func (x *Server_HTTP) GetNetwork() string
func (*Server_HTTP) GetTimeout ¶
func (x *Server_HTTP) GetTimeout() *durationpb.Duration
func (*Server_HTTP) ProtoMessage ¶
func (*Server_HTTP) ProtoMessage()
func (*Server_HTTP) ProtoReflect ¶
func (x *Server_HTTP) ProtoReflect() protoreflect.Message
func (*Server_HTTP) Reset ¶
func (x *Server_HTTP) Reset()
func (*Server_HTTP) String ¶
func (x *Server_HTTP) String() string
type Site ¶
type Site struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
SiteName string `protobuf:"bytes,2,opt,name=site_name,json=siteName,proto3" json:"site_name,omitempty"`
SiteDesc string `protobuf:"bytes,3,opt,name=site_desc,json=siteDesc,proto3" json:"site_desc,omitempty"`
SiteLogo string `protobuf:"bytes,4,opt,name=site_logo,json=siteLogo,proto3" json:"site_logo,omitempty"`
Keywords string `protobuf:"bytes,5,opt,name=keywords,proto3" json:"keywords,omitempty"`
CustomHtml string `protobuf:"bytes,6,opt,name=custom_html,json=customHtml,proto3" json:"custom_html,omitempty"`
CustomData string `protobuf:"bytes,7,opt,name=custom_data,json=customData,proto3" json:"custom_data,omitempty"`
// contains filtered or unexported fields
}
func (*Site) Descriptor
deprecated
func (*Site) GetCustomData ¶
func (*Site) GetCustomHtml ¶
func (*Site) GetKeywords ¶
func (*Site) GetSiteDesc ¶
func (*Site) GetSiteLogo ¶
func (*Site) GetSiteName ¶
func (*Site) ProtoMessage ¶
func (*Site) ProtoMessage()
func (*Site) ProtoReflect ¶
func (x *Site) ProtoReflect() protoreflect.Message
type Subscribe ¶
type Subscribe struct {
SingleModel bool `protobuf:"varint,1,opt,name=single_model,json=singleModel,proto3" json:"single_model,omitempty"`
SubscribePath string `protobuf:"bytes,2,opt,name=subscribe_path,json=subscribePath,proto3" json:"subscribe_path,omitempty"`
SubscribeDomain string `protobuf:"bytes,3,opt,name=subscribe_domain,json=subscribeDomain,proto3" json:"subscribe_domain,omitempty"`
PanDomain bool `protobuf:"varint,4,opt,name=pan_domain,json=panDomain,proto3" json:"pan_domain,omitempty"`
UserAgentLimit bool `protobuf:"varint,5,opt,name=user_agent_limit,json=userAgentLimit,proto3" json:"user_agent_limit,omitempty"`
UserAgentList string `protobuf:"bytes,6,opt,name=user_agent_list,json=userAgentList,proto3" json:"user_agent_list,omitempty"`
// contains filtered or unexported fields
}
func (*Subscribe) Descriptor
deprecated
func (*Subscribe) GetPanDomain ¶
func (*Subscribe) GetSingleModel ¶
func (*Subscribe) GetSubscribeDomain ¶
func (*Subscribe) GetSubscribePath ¶
func (*Subscribe) GetUserAgentLimit ¶
func (*Subscribe) GetUserAgentList ¶
func (*Subscribe) ProtoMessage ¶
func (*Subscribe) ProtoMessage()
func (*Subscribe) ProtoReflect ¶
func (x *Subscribe) ProtoReflect() protoreflect.Message
type Verify ¶
type Verify struct {
TurnstileSiteKey string `protobuf:"bytes,1,opt,name=turnstile_site_key,json=turnstileSiteKey,proto3" json:"turnstile_site_key,omitempty"`
EnableLoginVerify bool `protobuf:"varint,2,opt,name=enable_login_verify,json=enableLoginVerify,proto3" json:"enable_login_verify,omitempty"`
EnableRegisterVerify bool `protobuf:"varint,3,opt,name=enable_register_verify,json=enableRegisterVerify,proto3" json:"enable_register_verify,omitempty"`
EnableResetPasswordVerify bool `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Verify) Descriptor
deprecated
func (*Verify) GetEnableLoginVerify ¶
func (*Verify) GetEnableRegisterVerify ¶
func (*Verify) GetEnableResetPasswordVerify ¶
func (*Verify) GetTurnstileSiteKey ¶
func (*Verify) ProtoMessage ¶
func (*Verify) ProtoMessage()
func (*Verify) ProtoReflect ¶
func (x *Verify) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.