Documentation ¶
Index ¶
- Variables
- type AccessTokensUserSetting
- func (*AccessTokensUserSetting) Descriptor() ([]byte, []int)deprecated
- func (x *AccessTokensUserSetting) GetAccessTokens() []*AccessTokensUserSetting_AccessToken
- func (*AccessTokensUserSetting) ProtoMessage()
- func (x *AccessTokensUserSetting) ProtoReflect() protoreflect.Message
- func (x *AccessTokensUserSetting) Reset()
- func (x *AccessTokensUserSetting) String() string
- type AccessTokensUserSetting_AccessToken
- func (*AccessTokensUserSetting_AccessToken) Descriptor() ([]byte, []int)deprecated
- func (x *AccessTokensUserSetting_AccessToken) GetAccessToken() string
- func (x *AccessTokensUserSetting_AccessToken) GetDescription() string
- func (*AccessTokensUserSetting_AccessToken) ProtoMessage()
- func (x *AccessTokensUserSetting_AccessToken) ProtoReflect() protoreflect.Message
- func (x *AccessTokensUserSetting_AccessToken) Reset()
- func (x *AccessTokensUserSetting_AccessToken) String() string
- type BackupConfig
- func (*BackupConfig) Descriptor() ([]byte, []int)deprecated
- func (x *BackupConfig) GetCron() string
- func (x *BackupConfig) GetEnabled() bool
- func (x *BackupConfig) GetMaxKeep() int32
- func (*BackupConfig) ProtoMessage()
- func (x *BackupConfig) ProtoReflect() protoreflect.Message
- func (x *BackupConfig) Reset()
- func (x *BackupConfig) String() string
- type SystemSettingKey
- func (SystemSettingKey) Descriptor() protoreflect.EnumDescriptor
- func (x SystemSettingKey) Enum() *SystemSettingKey
- func (SystemSettingKey) EnumDescriptor() ([]byte, []int)deprecated
- func (x SystemSettingKey) Number() protoreflect.EnumNumber
- func (x SystemSettingKey) String() string
- func (SystemSettingKey) Type() protoreflect.EnumType
- type UserSetting
- func (*UserSetting) Descriptor() ([]byte, []int)deprecated
- func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting
- func (x *UserSetting) GetKey() UserSettingKey
- func (x *UserSetting) GetUserId() int32
- func (m *UserSetting) GetValue() isUserSetting_Value
- func (*UserSetting) ProtoMessage()
- func (x *UserSetting) ProtoReflect() protoreflect.Message
- func (x *UserSetting) Reset()
- func (x *UserSetting) String() string
- type UserSettingKey
- func (UserSettingKey) Descriptor() protoreflect.EnumDescriptor
- func (x UserSettingKey) Enum() *UserSettingKey
- func (UserSettingKey) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserSettingKey) Number() protoreflect.EnumNumber
- func (x UserSettingKey) String() string
- func (UserSettingKey) Type() protoreflect.EnumType
- type UserSetting_AccessTokens
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SystemSettingKey_name = map[int32]string{ 0: "SYSTEM_SETTING_KEY_UNSPECIFIED", 1: "BACKUP_CONFIG", } SystemSettingKey_value = map[string]int32{ "SYSTEM_SETTING_KEY_UNSPECIFIED": 0, "BACKUP_CONFIG": 1, } )
Enum value maps for SystemSettingKey.
View Source
var ( UserSettingKey_name = map[int32]string{ 0: "USER_SETTING_KEY_UNSPECIFIED", 1: "USER_SETTING_ACCESS_TOKENS", } UserSettingKey_value = map[string]int32{ "USER_SETTING_KEY_UNSPECIFIED": 0, "USER_SETTING_ACCESS_TOKENS": 1, } )
Enum value maps for UserSettingKey.
View Source
var File_store_common_proto protoreflect.FileDescriptor
View Source
var File_store_system_setting_proto protoreflect.FileDescriptor
View Source
var File_store_user_setting_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AccessTokensUserSetting ¶
type AccessTokensUserSetting struct { AccessTokens []*AccessTokensUserSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"` // contains filtered or unexported fields }
func (*AccessTokensUserSetting) Descriptor
deprecated
func (*AccessTokensUserSetting) Descriptor() ([]byte, []int)
Deprecated: Use AccessTokensUserSetting.ProtoReflect.Descriptor instead.
func (*AccessTokensUserSetting) GetAccessTokens ¶
func (x *AccessTokensUserSetting) GetAccessTokens() []*AccessTokensUserSetting_AccessToken
func (*AccessTokensUserSetting) ProtoMessage ¶
func (*AccessTokensUserSetting) ProtoMessage()
func (*AccessTokensUserSetting) ProtoReflect ¶
func (x *AccessTokensUserSetting) ProtoReflect() protoreflect.Message
func (*AccessTokensUserSetting) Reset ¶
func (x *AccessTokensUserSetting) Reset()
func (*AccessTokensUserSetting) String ¶
func (x *AccessTokensUserSetting) String() string
type AccessTokensUserSetting_AccessToken ¶
type AccessTokensUserSetting_AccessToken struct { // The access token is a JWT token. // Including expiration time, issuer, etc. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // A description for the access token. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*AccessTokensUserSetting_AccessToken) Descriptor
deprecated
func (*AccessTokensUserSetting_AccessToken) Descriptor() ([]byte, []int)
Deprecated: Use AccessTokensUserSetting_AccessToken.ProtoReflect.Descriptor instead.
func (*AccessTokensUserSetting_AccessToken) GetAccessToken ¶
func (x *AccessTokensUserSetting_AccessToken) GetAccessToken() string
func (*AccessTokensUserSetting_AccessToken) GetDescription ¶
func (x *AccessTokensUserSetting_AccessToken) GetDescription() string
func (*AccessTokensUserSetting_AccessToken) ProtoMessage ¶
func (*AccessTokensUserSetting_AccessToken) ProtoMessage()
func (*AccessTokensUserSetting_AccessToken) ProtoReflect ¶
func (x *AccessTokensUserSetting_AccessToken) ProtoReflect() protoreflect.Message
func (*AccessTokensUserSetting_AccessToken) Reset ¶
func (x *AccessTokensUserSetting_AccessToken) Reset()
func (*AccessTokensUserSetting_AccessToken) String ¶
func (x *AccessTokensUserSetting_AccessToken) String() string
type BackupConfig ¶
type BackupConfig struct { // enabled indicates whether backup is enabled. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // cron is the cron expression for backup. See https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format Cron string `protobuf:"bytes,2,opt,name=cron,proto3" json:"cron,omitempty"` // max_keep is the maximum number of backups to keep. MaxKeep int32 `protobuf:"varint,3,opt,name=max_keep,json=maxKeep,proto3" json:"max_keep,omitempty"` // contains filtered or unexported fields }
func (*BackupConfig) Descriptor
deprecated
func (*BackupConfig) Descriptor() ([]byte, []int)
Deprecated: Use BackupConfig.ProtoReflect.Descriptor instead.
func (*BackupConfig) GetCron ¶
func (x *BackupConfig) GetCron() string
func (*BackupConfig) GetEnabled ¶
func (x *BackupConfig) GetEnabled() bool
func (*BackupConfig) GetMaxKeep ¶
func (x *BackupConfig) GetMaxKeep() int32
func (*BackupConfig) ProtoMessage ¶
func (*BackupConfig) ProtoMessage()
func (*BackupConfig) ProtoReflect ¶
func (x *BackupConfig) ProtoReflect() protoreflect.Message
func (*BackupConfig) Reset ¶
func (x *BackupConfig) Reset()
func (*BackupConfig) String ¶
func (x *BackupConfig) String() string
type SystemSettingKey ¶
type SystemSettingKey int32
const ( SystemSettingKey_SYSTEM_SETTING_KEY_UNSPECIFIED SystemSettingKey = 0 // BackupConfig is the key for auto-backup configuration. SystemSettingKey_BACKUP_CONFIG SystemSettingKey = 1 )
func (SystemSettingKey) Descriptor ¶
func (SystemSettingKey) Descriptor() protoreflect.EnumDescriptor
func (SystemSettingKey) Enum ¶
func (x SystemSettingKey) Enum() *SystemSettingKey
func (SystemSettingKey) EnumDescriptor
deprecated
func (SystemSettingKey) EnumDescriptor() ([]byte, []int)
Deprecated: Use SystemSettingKey.Descriptor instead.
func (SystemSettingKey) Number ¶
func (x SystemSettingKey) Number() protoreflect.EnumNumber
func (SystemSettingKey) String ¶
func (x SystemSettingKey) String() string
func (SystemSettingKey) Type ¶
func (SystemSettingKey) Type() protoreflect.EnumType
type UserSetting ¶
type UserSetting struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Key UserSettingKey `protobuf:"varint,2,opt,name=key,proto3,enum=memos.store.UserSettingKey" json:"key,omitempty"` // Types that are assignable to Value: // // *UserSetting_AccessTokens Value isUserSetting_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*UserSetting) Descriptor
deprecated
func (*UserSetting) Descriptor() ([]byte, []int)
Deprecated: Use UserSetting.ProtoReflect.Descriptor instead.
func (*UserSetting) GetAccessTokens ¶
func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting
func (*UserSetting) GetKey ¶
func (x *UserSetting) GetKey() UserSettingKey
func (*UserSetting) GetUserId ¶
func (x *UserSetting) GetUserId() int32
func (*UserSetting) GetValue ¶
func (m *UserSetting) GetValue() isUserSetting_Value
func (*UserSetting) ProtoMessage ¶
func (*UserSetting) ProtoMessage()
func (*UserSetting) ProtoReflect ¶
func (x *UserSetting) ProtoReflect() protoreflect.Message
func (*UserSetting) Reset ¶
func (x *UserSetting) Reset()
func (*UserSetting) String ¶
func (x *UserSetting) String() string
type UserSettingKey ¶
type UserSettingKey int32
const ( UserSettingKey_USER_SETTING_KEY_UNSPECIFIED UserSettingKey = 0 // Access tokens for the user. UserSettingKey_USER_SETTING_ACCESS_TOKENS UserSettingKey = 1 )
func (UserSettingKey) Descriptor ¶
func (UserSettingKey) Descriptor() protoreflect.EnumDescriptor
func (UserSettingKey) Enum ¶
func (x UserSettingKey) Enum() *UserSettingKey
func (UserSettingKey) EnumDescriptor
deprecated
func (UserSettingKey) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserSettingKey.Descriptor instead.
func (UserSettingKey) Number ¶
func (x UserSettingKey) Number() protoreflect.EnumNumber
func (UserSettingKey) String ¶
func (x UserSettingKey) String() string
func (UserSettingKey) Type ¶
func (UserSettingKey) Type() protoreflect.EnumType
type UserSetting_AccessTokens ¶
type UserSetting_AccessTokens struct {
AccessTokens *AccessTokensUserSetting `protobuf:"bytes,3,opt,name=access_tokens,json=accessTokens,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.