config

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PasswordComplexity_name = map[int32]string{
	0: "unsafe",
	1: "general",
	2: "safe",
	3: "very_safe",
}
View Source
var PasswordComplexity_value = map[string]int32{
	"unsafe":    0,
	"general":   1,
	"safe":      2,
	"very_safe": 3,
}

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

func ReloadConfigFromFile

func ReloadConfigFromFile(logger log.Logger, filename string) error

func ReloadConfigFromYamlReader

func ReloadConfigFromYamlReader(logger log.Logger, r Reader) error

func SetRuntimeConfig

func SetRuntimeConfig(f func(c *RuntimeConfig))

Types

type Allower

type Allower interface {
	Allow() bool
	String() string
}

func NewLimiterWrapper

func NewLimiterWrapper(l *rate.Limiter) Allower

type Allowers

type Allowers []Limiter

func (Allowers) Allow

func (l Allowers) Allow() bool

func (Allowers) String

func (l Allowers) String() string

type Config

type Config struct {
	Storage              *Storages                                                 `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"`
	Global               *GlobalOptions                                            `protobuf:"bytes,2,opt,name=global,proto3" json:"global,omitempty"`
	Smtp                 *github_com_MicroOps_cn_idas_pkg_client_email.SmtpOptions `` /* 129-byte string literal not displayed */
	Security             *Security                                                 `protobuf:"bytes,4,opt,name=security,proto3" json:"security,omitempty"`
	Trace                github_com_MicroOps_cn_fuck_clients_tracing.TraceOptions  `protobuf:"bytes,5,opt,name=trace,proto3,customtype=github.com/MicroOps-cn/fuck/clients/tracing.TraceOptions" json:"trace"`
	XXX_NoUnkeyedLiteral struct{}                                                  `json:"-"`
	XXX_unrecognized     []byte                                                    `json:"-"`
	XXX_sizecache        int32                                                     `json:"-"`
}

func Get

func Get() *Config

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetAppName

func (x *Config) GetAppName() string

func (*Config) GetGlobal

func (m *Config) GetGlobal() *GlobalOptions

func (*Config) GetOAuthOptions

func (x *Config) GetOAuthOptions(id string) *oauth2.Options

func (*Config) GetRateLimit

func (x *Config) GetRateLimit(name string) Allower

func (*Config) GetSecurity

func (m *Config) GetSecurity() *Security

func (*Config) GetStorage

func (m *Config) GetStorage() *Storages

func (*Config) GetUploadDir

func (x *Config) GetUploadDir() (afero.Fs, error)

func (*Config) GetWorkspace

func (x *Config) GetWorkspace() afero.Fs

func (*Config) Init

func (x *Config) Init(_ log.Logger) error

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) SetWorkspace

func (x *Config) SetWorkspace(path string)

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type Converter

type Converter struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter(name string, r io.Reader) *Converter

func (*Converter) Name

func (c *Converter) Name() string

func (*Converter) UnmarshalYAML

func (c *Converter) UnmarshalYAML(value *yaml.Node) error

type CustomType

type CustomType struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CustomType) Descriptor

func (*CustomType) Descriptor() ([]byte, []int)

func (*CustomType) ProtoMessage

func (*CustomType) ProtoMessage()

func (*CustomType) Reset

func (m *CustomType) Reset()

func (*CustomType) String

func (m *CustomType) String() string

func (*CustomType) XXX_DiscardUnknown

func (m *CustomType) XXX_DiscardUnknown()

func (*CustomType) XXX_Marshal

func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomType) XXX_Merge

func (m *CustomType) XXX_Merge(src proto.Message)

func (*CustomType) XXX_Size

func (m *CustomType) XXX_Size() int

func (*CustomType) XXX_Unmarshal

func (m *CustomType) XXX_Unmarshal(b []byte) error

type GlobalOptions

type GlobalOptions struct {
	MaxUploadSize *capacity.Capacity `protobuf:"bytes,1,opt,name=max_upload_size,json=maxUploadSize,proto3" json:"max_upload_size,omitempty"`
	MaxBodySize   *capacity.Capacity `protobuf:"bytes,2,opt,name=max_body_size,json=maxBodySize,proto3" json:"max_body_size,omitempty"`
	UploadPath    string             `protobuf:"bytes,3,opt,name=upload_path,json=uploadPath,proto3" json:"upload_path,omitempty"`
	Workspace     string             `protobuf:"bytes,4,opt,name=workspace,proto3" json:"workspace,omitempty"`
	// Deprecated: use security.secret
	Secret *string `protobuf:"bytes,5,opt,name=secret,proto3,customtype=string" json:"secret,omitempty"`
	// Deprecated: use security.jwt_secret
	JwtSecret            *string           `protobuf:"bytes,6,opt,name=jwt_secret,json=jwtSecret,proto3,customtype=string" json:"jwt_secret,omitempty"`
	AppName              string            `protobuf:"bytes,7,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Oauth2               []*oauth2.Options `protobuf:"bytes,8,rep,name=oauth2,proto3" json:"oauth2,omitempty"`
	DisableLoginForm     bool              `protobuf:"varint,9,opt,name=disable_login_form,json=disableLoginForm,proto3" json:"disable_login_form,omitempty"`
	Title                string            `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"`
	SubTitle             string            `protobuf:"bytes,11,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"`
	Copyright            string            `protobuf:"bytes,13,opt,name=copyright,proto3" json:"copyright,omitempty"`
	AdminEmail           string            `protobuf:"bytes,14,opt,name=admin_email,json=adminEmail,proto3" json:"admin_email,omitempty"`
	DefaultLoginType     string            `protobuf:"bytes,15,opt,name=default_login_type,json=defaultLoginType,proto3" json:"default_login_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func NewGlobalOptions

func NewGlobalOptions() *GlobalOptions

func (*GlobalOptions) Descriptor

func (*GlobalOptions) Descriptor() ([]byte, []int)

func (*GlobalOptions) GetAdminEmail

func (m *GlobalOptions) GetAdminEmail() string

func (*GlobalOptions) GetAppName

func (m *GlobalOptions) GetAppName() string

func (*GlobalOptions) GetCopyright

func (m *GlobalOptions) GetCopyright() string

func (*GlobalOptions) GetDefaultLoginType

func (m *GlobalOptions) GetDefaultLoginType() string

func (*GlobalOptions) GetDisableLoginForm

func (m *GlobalOptions) GetDisableLoginForm() bool
func (m *GlobalOptions) GetLogo() string

func (*GlobalOptions) GetMaxBodySize

func (m *GlobalOptions) GetMaxBodySize() *capacity.Capacity

func (*GlobalOptions) GetMaxUploadSize

func (m *GlobalOptions) GetMaxUploadSize() *capacity.Capacity

func (*GlobalOptions) GetOauth2

func (m *GlobalOptions) GetOauth2() []*oauth2.Options

func (*GlobalOptions) GetSubTitle

func (m *GlobalOptions) GetSubTitle() string

func (*GlobalOptions) GetTitle

func (m *GlobalOptions) GetTitle() string

func (*GlobalOptions) GetUploadPath

func (m *GlobalOptions) GetUploadPath() string

func (*GlobalOptions) GetWorkspace

func (m *GlobalOptions) GetWorkspace() string

func (*GlobalOptions) ProtoMessage

func (*GlobalOptions) ProtoMessage()

func (*GlobalOptions) Reset

func (m *GlobalOptions) Reset()

func (*GlobalOptions) String

func (m *GlobalOptions) String() string

func (*GlobalOptions) UnmarshalJSONPB

func (x *GlobalOptions) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, b []byte) error

func (*GlobalOptions) XXX_DiscardUnknown

func (m *GlobalOptions) XXX_DiscardUnknown()

func (*GlobalOptions) XXX_Marshal

func (m *GlobalOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GlobalOptions) XXX_Merge

func (m *GlobalOptions) XXX_Merge(src proto.Message)

func (*GlobalOptions) XXX_Size

func (m *GlobalOptions) XXX_Size() int

func (*GlobalOptions) XXX_Unmarshal

func (m *GlobalOptions) XXX_Unmarshal(b []byte) error

type Limiter

type Limiter interface {
	Allow() bool
	Limit() rate.Limit
	Burst() int
}

type PasswordComplexity

type PasswordComplexity int32

@sync-to-public:public/src/services/idas/enums.ts:PasswordComplexity

const (
	PasswordComplexity_unsafe    PasswordComplexity = 0
	PasswordComplexity_general   PasswordComplexity = 1
	PasswordComplexity_safe      PasswordComplexity = 2
	PasswordComplexity_very_safe PasswordComplexity = 3
)

func (PasswordComplexity) EnumDescriptor

func (PasswordComplexity) EnumDescriptor() ([]byte, []int)

func (PasswordComplexity) String

func (x PasswordComplexity) String() string

type RateLimit

type RateLimit struct {
	Name                 github_com_MicroOps_cn_fuck_wrapper.OneOrMore[string] `protobuf:"bytes,1,opt,name=name,proto3,customtype=github.com/MicroOps-cn/fuck/wrapper.OneOrMore[string]" json:"name"`
	Allower              Limiter                                               `protobuf:"bytes,2,opt,name=allower,proto3,customtype=Limiter" json:"-"`
	Limit                string                                                `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Burst                int32                                                 `protobuf:"varint,4,opt,name=burst,proto3" json:"burst,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                              `json:"-"`
	XXX_unrecognized     []byte                                                `json:"-"`
	XXX_sizecache        int32                                                 `json:"-"`
}

func (*RateLimit) Descriptor

func (*RateLimit) Descriptor() ([]byte, []int)

func (*RateLimit) GetBurst

func (m *RateLimit) GetBurst() int32

func (*RateLimit) GetLimit

func (m *RateLimit) GetLimit() string

func (RateLimit) MarshalJSON

func (r RateLimit) MarshalJSON() ([]byte, error)

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) Reset

func (m *RateLimit) Reset()

func (*RateLimit) String

func (m *RateLimit) String() string

func (*RateLimit) UnmarshalJSON

func (r *RateLimit) UnmarshalJSON(data []byte) (err error)

func (*RateLimit) UnmarshalJSONPB

func (r *RateLimit) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, b []byte) error

func (*RateLimit) XXX_DiscardUnknown

func (m *RateLimit) XXX_DiscardUnknown()

func (*RateLimit) XXX_Marshal

func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RateLimit) XXX_Merge

func (m *RateLimit) XXX_Merge(src proto.Message)

func (*RateLimit) XXX_Size

func (m *RateLimit) XXX_Size() int

func (*RateLimit) XXX_Unmarshal

func (m *RateLimit) XXX_Unmarshal(b []byte) error

type Reader

type Reader interface {
	io.Reader
	Name() string
}

type RuntimeConfig

type RuntimeConfig struct {
	Security             *RuntimeSecurityConfig `protobuf:"bytes,1,opt,name=security,proto3" json:"security,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func GetRuntimeConfig

func GetRuntimeConfig() *RuntimeConfig

func (*RuntimeConfig) Descriptor

func (*RuntimeConfig) Descriptor() ([]byte, []int)

func (*RuntimeConfig) GetLoginSessionInactivityTime

func (c *RuntimeConfig) GetLoginSessionInactivityTime() uint32

func (*RuntimeConfig) GetLoginSessionMaxTime

func (c *RuntimeConfig) GetLoginSessionMaxTime() uint32

func (*RuntimeConfig) GetPasswordFailedLockConfig

func (c *RuntimeConfig) GetPasswordFailedLockConfig() (failedSec, failedThreshold int64)

func (*RuntimeConfig) GetSecurity

func (m *RuntimeConfig) GetSecurity() *RuntimeSecurityConfig

func (*RuntimeConfig) ProtoMessage

func (*RuntimeConfig) ProtoMessage()

func (*RuntimeConfig) Reset

func (m *RuntimeConfig) Reset()

func (*RuntimeConfig) String

func (m *RuntimeConfig) String() string

func (*RuntimeConfig) XXX_DiscardUnknown

func (m *RuntimeConfig) XXX_DiscardUnknown()

func (*RuntimeConfig) XXX_Marshal

func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RuntimeConfig) XXX_Merge

func (m *RuntimeConfig) XXX_Merge(src proto.Message)

func (*RuntimeConfig) XXX_Size

func (m *RuntimeConfig) XXX_Size() int

func (*RuntimeConfig) XXX_Unmarshal

func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error

type RuntimeSecurityConfig

type RuntimeSecurityConfig struct {
	ForceEnableMfa              bool               `protobuf:"varint,1,opt,name=force_enable_mfa,json=forceEnableMfa,proto3" json:"forceEnableMfa"`
	PasswordComplexity          PasswordComplexity `` /* 141-byte string literal not displayed */
	PasswordMinLength           uint32             `protobuf:"varint,3,opt,name=password_min_length,json=passwordMinLength,proto3" json:"passwordMinLength"`
	PasswordExpireTime          uint32             `protobuf:"varint,4,opt,name=password_expire_time,json=passwordExpireTime,proto3" json:"passwordExpireTime"`
	PasswordFailedLockThreshold uint32             `` /* 134-byte string literal not displayed */
	PasswordFailedLockDuration  uint32             `` /* 131-byte string literal not displayed */
	PasswordHistory             uint32             `protobuf:"varint,7,opt,name=password_history,json=passwordHistory,proto3" json:"passwordHistory"`
	AccountInactiveLock         uint32             `protobuf:"varint,8,opt,name=account_inactive_lock,json=accountInactiveLock,proto3" json:"accountInactiveLock"`
	LoginSessionInactivityTime  uint32             `` /* 131-byte string literal not displayed */
	LoginSessionMaxTime         uint32             `protobuf:"varint,10,opt,name=login_session_max_time,json=loginSessionMaxTime,proto3" json:"loginSessionMaxTime"`
	XXX_NoUnkeyedLiteral        struct{}           `json:"-"`
	XXX_unrecognized            []byte             `json:"-"`
	XXX_sizecache               int32              `json:"-"`
}

func (*RuntimeSecurityConfig) Descriptor

func (*RuntimeSecurityConfig) Descriptor() ([]byte, []int)

func (*RuntimeSecurityConfig) GetAccountInactiveLock

func (m *RuntimeSecurityConfig) GetAccountInactiveLock() uint32

func (*RuntimeSecurityConfig) GetForceEnableMfa

func (m *RuntimeSecurityConfig) GetForceEnableMfa() bool

func (*RuntimeSecurityConfig) GetLoginSessionInactivityTime

func (m *RuntimeSecurityConfig) GetLoginSessionInactivityTime() uint32

func (*RuntimeSecurityConfig) GetLoginSessionMaxTime

func (m *RuntimeSecurityConfig) GetLoginSessionMaxTime() uint32

func (*RuntimeSecurityConfig) GetPasswordComplexity

func (m *RuntimeSecurityConfig) GetPasswordComplexity() PasswordComplexity

func (*RuntimeSecurityConfig) GetPasswordExpireTime

func (m *RuntimeSecurityConfig) GetPasswordExpireTime() uint32

func (*RuntimeSecurityConfig) GetPasswordFailedLockDuration

func (m *RuntimeSecurityConfig) GetPasswordFailedLockDuration() uint32

func (*RuntimeSecurityConfig) GetPasswordFailedLockThreshold

func (m *RuntimeSecurityConfig) GetPasswordFailedLockThreshold() uint32

func (*RuntimeSecurityConfig) GetPasswordHistory

func (m *RuntimeSecurityConfig) GetPasswordHistory() uint32

func (*RuntimeSecurityConfig) GetPasswordMinLength

func (m *RuntimeSecurityConfig) GetPasswordMinLength() uint32

func (*RuntimeSecurityConfig) ProtoMessage

func (*RuntimeSecurityConfig) ProtoMessage()

func (*RuntimeSecurityConfig) Reset

func (m *RuntimeSecurityConfig) Reset()

func (*RuntimeSecurityConfig) String

func (m *RuntimeSecurityConfig) String() string

func (*RuntimeSecurityConfig) XXX_DiscardUnknown

func (m *RuntimeSecurityConfig) XXX_DiscardUnknown()

func (*RuntimeSecurityConfig) XXX_Marshal

func (m *RuntimeSecurityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RuntimeSecurityConfig) XXX_Merge

func (m *RuntimeSecurityConfig) XXX_Merge(src proto.Message)

func (*RuntimeSecurityConfig) XXX_Size

func (m *RuntimeSecurityConfig) XXX_Size() int

func (*RuntimeSecurityConfig) XXX_Unmarshal

func (m *RuntimeSecurityConfig) XXX_Unmarshal(b []byte) error

type Security

type Security struct {
	TrustIp              github_com_MicroOps_cn_fuck_sets.IPNets `protobuf:"bytes,1,opt,name=trust_ip,json=trustIp,proto3,customtype=github.com/MicroOps-cn/fuck/sets.IPNets" json:"trust_ip"`
	RateLimit            []*RateLimit                            `protobuf:"bytes,2,rep,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"`
	Secret               string                                  `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	JwtSecret            string                                  `protobuf:"bytes,4,opt,name=jwt_secret,json=jwtSecret,proto3" json:"jwt_secret,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
	XXX_unrecognized     []byte                                  `json:"-"`
	XXX_sizecache        int32                                   `json:"-"`
}

func (*Security) Descriptor

func (*Security) Descriptor() ([]byte, []int)

func (*Security) GetJwtSecret

func (m *Security) GetJwtSecret() string

func (*Security) GetRateLimit

func (m *Security) GetRateLimit() []*RateLimit

func (*Security) GetSecret

func (m *Security) GetSecret() string

func (*Security) ProtoMessage

func (*Security) ProtoMessage()

func (*Security) Reset

func (m *Security) Reset()

func (*Security) String

func (m *Security) String() string

func (*Security) XXX_DiscardUnknown

func (m *Security) XXX_DiscardUnknown()

func (*Security) XXX_Marshal

func (m *Security) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Security) XXX_Merge

func (m *Security) XXX_Merge(src proto.Message)

func (*Security) XXX_Size

func (m *Security) XXX_Size() int

func (*Security) XXX_Unmarshal

func (m *Security) XXX_Unmarshal(b []byte) error

type Storage

type Storage struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to Source:
	//	*Storage_Ref
	//	*Storage_Mysql
	//	*Storage_Redis
	//	*Storage_Ldap
	//	*Storage_Sqlite
	Source               isStorage_Source `protobuf_oneof:"source"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Storage) Descriptor

func (*Storage) Descriptor() ([]byte, []int)

func (*Storage) GetName

func (m *Storage) GetName() string

func (*Storage) GetRef

func (m *Storage) GetRef() *StorageRef

func (*Storage) GetSource

func (m *Storage) GetSource() isStorage_Source

func (*Storage) GetStorageSource

func (x *Storage) GetStorageSource() isStorage_Source

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) Reset

func (m *Storage) Reset()

func (*Storage) String

func (m *Storage) String() string

func (*Storage) XXX_DiscardUnknown

func (m *Storage) XXX_DiscardUnknown()

func (*Storage) XXX_Marshal

func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Storage) XXX_Merge

func (m *Storage) XXX_Merge(src proto.Message)

func (*Storage) XXX_OneofWrappers

func (*Storage) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Storage) XXX_Size

func (m *Storage) XXX_Size() int

func (*Storage) XXX_Unmarshal

func (m *Storage) XXX_Unmarshal(b []byte) error

type StorageRef

type StorageRef struct {
	Storage              *Storage `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"`
	Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StorageRef) Descriptor

func (*StorageRef) Descriptor() ([]byte, []int)

func (*StorageRef) GetName

func (m *StorageRef) GetName() string

func (*StorageRef) GetPath

func (m *StorageRef) GetPath() string

func (*StorageRef) GetStorage

func (m *StorageRef) GetStorage() *Storage

func (*StorageRef) ProtoMessage

func (*StorageRef) ProtoMessage()

func (*StorageRef) Reset

func (m *StorageRef) Reset()

func (*StorageRef) String

func (m *StorageRef) String() string

func (*StorageRef) UnmarshalJSONPB

func (x *StorageRef) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, b []byte) error

func (*StorageRef) XXX_DiscardUnknown

func (m *StorageRef) XXX_DiscardUnknown()

func (*StorageRef) XXX_Marshal

func (m *StorageRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageRef) XXX_Merge

func (m *StorageRef) XXX_Merge(src proto.Message)

func (*StorageRef) XXX_Size

func (m *StorageRef) XXX_Size() int

func (*StorageRef) XXX_Unmarshal

func (m *StorageRef) XXX_Unmarshal(b []byte) error

type Storage_Ldap

type Storage_Ldap struct {
	Ldap *github_com_MicroOps_cn_idas_pkg_client_ldap.Client `` /* 130-byte string literal not displayed */
}

type Storage_Mysql

type Storage_Mysql struct {
	Mysql *github_com_MicroOps_cn_fuck_clients_gorm.MySQLClient `` /* 134-byte string literal not displayed */
}

type Storage_Redis

type Storage_Redis struct {
	Redis *github_com_MicroOps_cn_fuck_clients_redis.Client `` /* 130-byte string literal not displayed */
}

type Storage_Ref

type Storage_Ref struct {
	Ref *StorageRef `protobuf:"bytes,10,opt,name=ref,proto3,oneof" json:"ref,omitempty"`
}

type Storage_Sqlite

type Storage_Sqlite struct {
	Sqlite *github_com_MicroOps_cn_fuck_clients_gorm.SQLiteClient `` /* 137-byte string literal not displayed */
}

type Storages

type Storages struct {
	Default              *Storage                                             `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"`
	Session              *Storage                                             `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
	User                 *Storage                                             `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Logging              *Storage                                             `protobuf:"bytes,4,opt,name=logging,proto3" json:"logging,omitempty"`
	Geoip                *github_com_MicroOps_cn_idas_pkg_client_geoip.Client `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                             `json:"-"`
	XXX_unrecognized     []byte                                               `json:"-"`
	XXX_sizecache        int32                                                `json:"-"`
}

func (*Storages) Descriptor

func (*Storages) Descriptor() ([]byte, []int)

func (*Storages) GetDefault

func (m *Storages) GetDefault() *Storage

func (*Storages) GetLogging

func (m *Storages) GetLogging() *Storage

func (*Storages) GetSession

func (m *Storages) GetSession() *Storage

func (*Storages) GetUser

func (m *Storages) GetUser() *Storage

func (*Storages) ProtoMessage

func (*Storages) ProtoMessage()

func (*Storages) Reset

func (m *Storages) Reset()

func (*Storages) String

func (m *Storages) String() string

func (*Storages) XXX_DiscardUnknown

func (m *Storages) XXX_DiscardUnknown()

func (*Storages) XXX_Marshal

func (m *Storages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Storages) XXX_Merge

func (m *Storages) XXX_Merge(src proto.Message)

func (*Storages) XXX_Size

func (m *Storages) XXX_Size() int

func (*Storages) XXX_Unmarshal

func (m *Storages) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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