conf

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Deprecated: Use Admin.ProtoReflect.Descriptor instead.

func (*Admin) GetAlgo

func (x *Admin) GetAlgo() string

func (*Admin) GetEmail

func (x *Admin) GetEmail() string

func (*Admin) GetPassword

func (x *Admin) GetPassword() string

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) ProtoReflect

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

func (*Admin) Reset

func (x *Admin) Reset()

func (*Admin) String

func (x *Admin) String() string

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetApp

func (x *Bootstrap) GetApp() *Application

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetDebug

func (x *Bootstrap) GetDebug() bool

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetEnable

func (x *Device) GetEnable() bool

func (*Device) GetSecuritySecret

func (x *Device) GetSecuritySecret() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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

Deprecated: Use EmailAuth.ProtoReflect.Descriptor instead.

func (*EmailAuth) GetDomainSuffixList

func (x *EmailAuth) GetDomainSuffixList() string

func (*EmailAuth) GetEnable

func (x *EmailAuth) GetEnable() bool

func (*EmailAuth) GetEnableDomainSuffix

func (x *EmailAuth) GetEnableDomainSuffix() bool

func (*EmailAuth) GetEnableVerify

func (x *EmailAuth) GetEnableVerify() bool

func (*EmailAuth) ProtoMessage

func (*EmailAuth) ProtoMessage()

func (*EmailAuth) ProtoReflect

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

func (*EmailAuth) Reset

func (x *EmailAuth) Reset()

func (*EmailAuth) String

func (x *EmailAuth) String() string

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

Deprecated: Use Invite.ProtoReflect.Descriptor instead.

func (*Invite) GetForcedInvite

func (x *Invite) GetForcedInvite() bool

func (*Invite) GetOnlyFirstPurchase

func (x *Invite) GetOnlyFirstPurchase() bool

func (*Invite) GetReferralPercentage

func (x *Invite) GetReferralPercentage() int64

func (*Invite) ProtoMessage

func (*Invite) ProtoMessage()

func (*Invite) ProtoReflect

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

func (*Invite) Reset

func (x *Invite) Reset()

func (*Invite) String

func (x *Invite) String() string

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetBlock

func (x *Node) GetBlock() []string

func (*Node) GetDns

func (x *Node) GetDns() []*NodeDNS

func (*Node) GetIpStrategy

func (x *Node) GetIpStrategy() string

func (*Node) GetNodePullInterval

func (x *Node) GetNodePullInterval() int64

func (*Node) GetNodePushInterval

func (x *Node) GetNodePushInterval() int64

func (*Node) GetNodeSecret

func (x *Node) GetNodeSecret() string

func (*Node) GetOutbound

func (x *Node) GetOutbound() []*NodeOutbound

func (*Node) GetTrafficReportThreshold

func (x *Node) GetTrafficReportThreshold() int64

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

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

Deprecated: Use NodeDNS.ProtoReflect.Descriptor instead.

func (*NodeDNS) GetAddress

func (x *NodeDNS) GetAddress() string

func (*NodeDNS) GetDomains

func (x *NodeDNS) GetDomains() []string

func (*NodeDNS) GetProto

func (x *NodeDNS) GetProto() string

func (*NodeDNS) ProtoMessage

func (*NodeDNS) ProtoMessage()

func (*NodeDNS) ProtoReflect

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

func (*NodeDNS) Reset

func (x *NodeDNS) Reset()

func (*NodeDNS) String

func (x *NodeDNS) String() string

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

Deprecated: Use Register.ProtoReflect.Descriptor instead.

func (*Register) GetEnableIpRegisterLimit

func (x *Register) GetEnableIpRegisterLimit() bool

func (*Register) GetEnableTrial

func (x *Register) GetEnableTrial() bool

func (*Register) GetIpRegisterLimit

func (x *Register) GetIpRegisterLimit() int64

func (*Register) GetIpRegisterLimitDuration

func (x *Register) GetIpRegisterLimitDuration() int64

func (*Register) GetStopRegister

func (x *Register) GetStopRegister() bool

func (*Register) GetTrialSubscribe

func (x *Register) GetTrialSubscribe() int64

func (*Register) GetTrialTime

func (x *Register) GetTrialTime() int64

func (*Register) GetTrialTimeUnit

func (x *Register) GetTrialTimeUnit() string

func (*Register) ProtoMessage

func (*Register) ProtoMessage()

func (*Register) ProtoReflect

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

func (*Register) Reset

func (x *Register) Reset()

func (*Register) String

func (x *Register) String() string

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

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

Deprecated: Use Site.ProtoReflect.Descriptor instead.

func (*Site) GetCustomData

func (x *Site) GetCustomData() string

func (*Site) GetCustomHtml

func (x *Site) GetCustomHtml() string

func (*Site) GetHost

func (x *Site) GetHost() string

func (*Site) GetKeywords

func (x *Site) GetKeywords() string

func (*Site) GetSiteDesc

func (x *Site) GetSiteDesc() string
func (x *Site) GetSiteLogo() string

func (*Site) GetSiteName

func (x *Site) GetSiteName() string

func (*Site) ProtoMessage

func (*Site) ProtoMessage()

func (*Site) ProtoReflect

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

func (*Site) Reset

func (x *Site) Reset()

func (*Site) String

func (x *Site) String() string

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

Deprecated: Use Subscribe.ProtoReflect.Descriptor instead.

func (*Subscribe) GetPanDomain

func (x *Subscribe) GetPanDomain() bool

func (*Subscribe) GetSingleModel

func (x *Subscribe) GetSingleModel() bool

func (*Subscribe) GetSubscribeDomain

func (x *Subscribe) GetSubscribeDomain() string

func (*Subscribe) GetSubscribePath

func (x *Subscribe) GetSubscribePath() string

func (*Subscribe) GetUserAgentLimit

func (x *Subscribe) GetUserAgentLimit() bool

func (*Subscribe) GetUserAgentList

func (x *Subscribe) GetUserAgentList() string

func (*Subscribe) ProtoMessage

func (*Subscribe) ProtoMessage()

func (*Subscribe) ProtoReflect

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

func (*Subscribe) Reset

func (x *Subscribe) Reset()

func (*Subscribe) String

func (x *Subscribe) String() string

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

Deprecated: Use Verify.ProtoReflect.Descriptor instead.

func (*Verify) GetEnableLoginVerify

func (x *Verify) GetEnableLoginVerify() bool

func (*Verify) GetEnableRegisterVerify

func (x *Verify) GetEnableRegisterVerify() bool

func (*Verify) GetEnableResetPasswordVerify

func (x *Verify) GetEnableResetPasswordVerify() bool

func (*Verify) GetTurnstileSiteKey

func (x *Verify) GetTurnstileSiteKey() string

func (*Verify) ProtoMessage

func (*Verify) ProtoMessage()

func (*Verify) ProtoReflect

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

func (*Verify) Reset

func (x *Verify) Reset()

func (*Verify) String

func (x *Verify) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL