settings

package
v0.0.0-...-3911e28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_user_settings_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_user_settings_settings_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthMethod

type AuthMethod struct {

	// Types that are assignable to Method:
	//
	//	*AuthMethod_LoginType
	//	*AuthMethod_OauthProvider
	Method isAuthMethod_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

func (*AuthMethod) Descriptor deprecated

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

Deprecated: Use AuthMethod.ProtoReflect.Descriptor instead.

func (*AuthMethod) GetLoginType

func (x *AuthMethod) GetLoginType() model.LoginType

func (*AuthMethod) GetMethod

func (m *AuthMethod) GetMethod() isAuthMethod_Method

func (*AuthMethod) GetOauthProvider

func (x *AuthMethod) GetOauthProvider() model.OauthProvider

func (*AuthMethod) ProtoMessage

func (*AuthMethod) ProtoMessage()

func (*AuthMethod) ProtoReflect

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

func (*AuthMethod) Reset

func (x *AuthMethod) Reset()

func (*AuthMethod) String

func (x *AuthMethod) String() string

type AuthMethod_LoginType

type AuthMethod_LoginType struct {
	LoginType model.LoginType `protobuf:"varint,1,opt,name=login_type,json=loginType,proto3,enum=model.LoginType,oneof"`
}

type AuthMethod_OauthProvider

type AuthMethod_OauthProvider struct {
	OauthProvider model.OauthProvider `protobuf:"varint,2,opt,name=oauth_provider,json=oauthProvider,proto3,enum=model.OauthProvider,oneof"`
}

type GetSettingsRequest

type GetSettingsRequest struct {
	// contains filtered or unexported fields
}

func (*GetSettingsRequest) Descriptor deprecated

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

Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetSettingsRequest) ProtoMessage

func (*GetSettingsRequest) ProtoMessage()

func (*GetSettingsRequest) ProtoReflect

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

func (*GetSettingsRequest) Reset

func (x *GetSettingsRequest) Reset()

func (*GetSettingsRequest) String

func (x *GetSettingsRequest) String() string

type GetSettingsResponse

type GetSettingsResponse struct {
	Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSettingsResponse) Descriptor deprecated

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

Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead.

func (*GetSettingsResponse) GetSettings

func (x *GetSettingsResponse) GetSettings() *Settings

func (*GetSettingsResponse) ProtoMessage

func (*GetSettingsResponse) ProtoMessage()

func (*GetSettingsResponse) ProtoReflect

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

func (*GetSettingsResponse) Reset

func (x *GetSettingsResponse) Reset()

func (*GetSettingsResponse) String

func (x *GetSettingsResponse) String() string

type OauthProviderSettings

type OauthProviderSettings struct {
	Provider      model.OauthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=model.OauthProvider" json:"provider,omitempty"`
	ClientId      string              `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret  string              `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	ProviderUrl   string              `protobuf:"bytes,4,opt,name=provider_url,json=providerUrl,proto3" json:"provider_url,omitempty"`
	Issuer        string              `protobuf:"bytes,5,opt,name=issuer,proto3" json:"issuer,omitempty"`
	AllowLogin    bool                `protobuf:"varint,6,opt,name=allow_login,json=allowLogin,proto3" json:"allow_login,omitempty"`
	AllowRegister bool                `protobuf:"varint,7,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"`
	// contains filtered or unexported fields
}

func (*OauthProviderSettings) Descriptor deprecated

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

Deprecated: Use OauthProviderSettings.ProtoReflect.Descriptor instead.

func (*OauthProviderSettings) GetAllowLogin

func (x *OauthProviderSettings) GetAllowLogin() bool

func (*OauthProviderSettings) GetAllowRegister

func (x *OauthProviderSettings) GetAllowRegister() bool

func (*OauthProviderSettings) GetClientId

func (x *OauthProviderSettings) GetClientId() string

func (*OauthProviderSettings) GetClientSecret

func (x *OauthProviderSettings) GetClientSecret() string

func (*OauthProviderSettings) GetIssuer

func (x *OauthProviderSettings) GetIssuer() string

func (*OauthProviderSettings) GetProvider

func (x *OauthProviderSettings) GetProvider() model.OauthProvider

func (*OauthProviderSettings) GetProviderUrl

func (x *OauthProviderSettings) GetProviderUrl() string

func (*OauthProviderSettings) ProtoMessage

func (*OauthProviderSettings) ProtoMessage()

func (*OauthProviderSettings) ProtoReflect

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

func (*OauthProviderSettings) Reset

func (x *OauthProviderSettings) Reset()

func (*OauthProviderSettings) String

func (x *OauthProviderSettings) String() string

type OauthSettings

type OauthSettings struct {
	CallbackUrls []string               `protobuf:"bytes,1,rep,name=callback_urls,json=callbackUrls,proto3" json:"callback_urls,omitempty"`
	Google       *OauthProviderSettings `protobuf:"bytes,2,opt,name=google,proto3" json:"google,omitempty"`
	Github       *OauthProviderSettings `protobuf:"bytes,3,opt,name=github,proto3" json:"github,omitempty"`
	Facebook     *OauthProviderSettings `protobuf:"bytes,4,opt,name=facebook,proto3" json:"facebook,omitempty"`
	// contains filtered or unexported fields
}

func (*OauthSettings) Descriptor deprecated

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

Deprecated: Use OauthSettings.ProtoReflect.Descriptor instead.

func (*OauthSettings) GetCallbackUrls

func (x *OauthSettings) GetCallbackUrls() []string

func (*OauthSettings) GetFacebook

func (x *OauthSettings) GetFacebook() *OauthProviderSettings

func (*OauthSettings) GetGithub

func (x *OauthSettings) GetGithub() *OauthProviderSettings

func (*OauthSettings) GetGoogle

func (x *OauthSettings) GetGoogle() *OauthProviderSettings

func (*OauthSettings) ProtoMessage

func (*OauthSettings) ProtoMessage()

func (*OauthSettings) ProtoReflect

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

func (*OauthSettings) Reset

func (x *OauthSettings) Reset()

func (*OauthSettings) String

func (x *OauthSettings) String() string

type RegisterMethod

type RegisterMethod struct {

	// Types that are assignable to Method:
	//
	//	*RegisterMethod_System_
	//	*RegisterMethod_Signup_
	//	*RegisterMethod_OauthProvider
	Method isRegisterMethod_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

func (*RegisterMethod) Descriptor deprecated

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

Deprecated: Use RegisterMethod.ProtoReflect.Descriptor instead.

func (*RegisterMethod) GetMethod

func (m *RegisterMethod) GetMethod() isRegisterMethod_Method

func (*RegisterMethod) GetOauthProvider

func (x *RegisterMethod) GetOauthProvider() model.OauthProvider

func (*RegisterMethod) GetSignup

func (x *RegisterMethod) GetSignup() *RegisterMethod_Signup

func (*RegisterMethod) GetSystem

func (x *RegisterMethod) GetSystem() *RegisterMethod_System

func (*RegisterMethod) ProtoMessage

func (*RegisterMethod) ProtoMessage()

func (*RegisterMethod) ProtoReflect

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

func (*RegisterMethod) Reset

func (x *RegisterMethod) Reset()

func (*RegisterMethod) String

func (x *RegisterMethod) String() string

type RegisterMethod_OauthProvider

type RegisterMethod_OauthProvider struct {
	OauthProvider model.OauthProvider `protobuf:"varint,3,opt,name=oauth_provider,json=oauthProvider,proto3,enum=model.OauthProvider,oneof"`
}

type RegisterMethod_Signup

type RegisterMethod_Signup struct {
	LoginType model.LoginType `protobuf:"varint,1,opt,name=login_type,json=loginType,proto3,enum=model.LoginType" json:"login_type,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterMethod_Signup) Descriptor deprecated

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

Deprecated: Use RegisterMethod_Signup.ProtoReflect.Descriptor instead.

func (*RegisterMethod_Signup) GetLoginType

func (x *RegisterMethod_Signup) GetLoginType() model.LoginType

func (*RegisterMethod_Signup) ProtoMessage

func (*RegisterMethod_Signup) ProtoMessage()

func (*RegisterMethod_Signup) ProtoReflect

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

func (*RegisterMethod_Signup) Reset

func (x *RegisterMethod_Signup) Reset()

func (*RegisterMethod_Signup) String

func (x *RegisterMethod_Signup) String() string

type RegisterMethod_Signup_

type RegisterMethod_Signup_ struct {
	Signup *RegisterMethod_Signup `protobuf:"bytes,2,opt,name=signup,proto3,oneof"`
}

type RegisterMethod_System

type RegisterMethod_System struct {
	// contains filtered or unexported fields
}

func (*RegisterMethod_System) Descriptor deprecated

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

Deprecated: Use RegisterMethod_System.ProtoReflect.Descriptor instead.

func (*RegisterMethod_System) ProtoMessage

func (*RegisterMethod_System) ProtoMessage()

func (*RegisterMethod_System) ProtoReflect

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

func (*RegisterMethod_System) Reset

func (x *RegisterMethod_System) Reset()

func (*RegisterMethod_System) String

func (x *RegisterMethod_System) String() string

type RegisterMethod_System_

type RegisterMethod_System_ struct {
	System *RegisterMethod_System `protobuf:"bytes,1,opt,name=system,proto3,oneof"`
}

type Settings

type Settings struct {
	AllowRegister           bool                 `protobuf:"varint,1,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"`
	IsVerifiedEmailRequired bool                 `` /* 135-byte string literal not displayed */
	IsVerifiedPhoneRequired bool                 `` /* 135-byte string literal not displayed */
	AccessTokenTtl          *durationpb.Duration `protobuf:"bytes,4,opt,name=access_token_ttl,json=accessTokenTtl,proto3" json:"access_token_ttl,omitempty"`
	RefreshTokenTtl         *durationpb.Duration `protobuf:"bytes,5,opt,name=refresh_token_ttl,json=refreshTokenTtl,proto3" json:"refresh_token_ttl,omitempty"`
	VerificationCodeTtl     *durationpb.Duration `protobuf:"bytes,6,opt,name=verification_code_ttl,json=verificationCodeTtl,proto3" json:"verification_code_ttl,omitempty"`
	PasswordHashing         *model.HashingConfig `protobuf:"bytes,7,opt,name=password_hashing,json=passwordHashing,proto3" json:"password_hashing,omitempty"`
	LoginMechanisms         []model.LoginType    `` /* 135-byte string literal not displayed */
	OauthSettings           *OauthSettings       `protobuf:"bytes,9,opt,name=oauth_settings,json=oauthSettings,proto3" json:"oauth_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*Settings) Descriptor deprecated

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

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetAccessTokenTtl

func (x *Settings) GetAccessTokenTtl() *durationpb.Duration

func (*Settings) GetAllowRegister

func (x *Settings) GetAllowRegister() bool

func (*Settings) GetIsVerifiedEmailRequired

func (x *Settings) GetIsVerifiedEmailRequired() bool

func (*Settings) GetIsVerifiedPhoneRequired

func (x *Settings) GetIsVerifiedPhoneRequired() bool

func (*Settings) GetLoginMechanisms

func (x *Settings) GetLoginMechanisms() []model.LoginType

func (*Settings) GetOauthSettings

func (x *Settings) GetOauthSettings() *OauthSettings

func (*Settings) GetPasswordHashing

func (x *Settings) GetPasswordHashing() *model.HashingConfig

func (*Settings) GetRefreshTokenTtl

func (x *Settings) GetRefreshTokenTtl() *durationpb.Duration

func (*Settings) GetVerificationCodeTtl

func (x *Settings) GetVerificationCodeTtl() *durationpb.Duration

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

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

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) String

func (x *Settings) String() string

type Update

type Update struct {

	// Types that are assignable to Field:
	//
	//	*Update_AllowRegister
	//	*Update_IsVerifiedEmailRequired
	//	*Update_IsVerifiedPhoneRequired
	//	*Update_AccessTokenTtl
	//	*Update_RefreshTokenTtl
	//	*Update_VerificationCodeTtl
	//	*Update_PasswordHashing
	//	*Update_LoginMechanisms_
	//	*Update_OauthSettings
	Field isUpdate_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

func (*Update) Descriptor deprecated

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetAccessTokenTtl

func (x *Update) GetAccessTokenTtl() *durationpb.Duration

func (*Update) GetAllowRegister

func (x *Update) GetAllowRegister() bool

func (*Update) GetField

func (m *Update) GetField() isUpdate_Field

func (*Update) GetIsVerifiedEmailRequired

func (x *Update) GetIsVerifiedEmailRequired() bool

func (*Update) GetIsVerifiedPhoneRequired

func (x *Update) GetIsVerifiedPhoneRequired() bool

func (*Update) GetLoginMechanisms

func (x *Update) GetLoginMechanisms() *Update_LoginMechanisms

func (*Update) GetOauthSettings

func (x *Update) GetOauthSettings() *OauthSettings

func (*Update) GetPasswordHashing

func (x *Update) GetPasswordHashing() *model.HashingConfig

func (*Update) GetRefreshTokenTtl

func (x *Update) GetRefreshTokenTtl() *durationpb.Duration

func (*Update) GetVerificationCodeTtl

func (x *Update) GetVerificationCodeTtl() *durationpb.Duration

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

type UpdateSettingsRequest

type UpdateSettingsRequest struct {
	Settings []*Update `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSettingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateSettingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateSettingsRequest) GetSettings

func (x *UpdateSettingsRequest) GetSettings() []*Update

func (*UpdateSettingsRequest) ProtoMessage

func (*UpdateSettingsRequest) ProtoMessage()

func (*UpdateSettingsRequest) ProtoReflect

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

func (*UpdateSettingsRequest) Reset

func (x *UpdateSettingsRequest) Reset()

func (*UpdateSettingsRequest) String

func (x *UpdateSettingsRequest) String() string

type UpdateSettingsResponse

type UpdateSettingsResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateSettingsResponse) Descriptor deprecated

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

Deprecated: Use UpdateSettingsResponse.ProtoReflect.Descriptor instead.

func (*UpdateSettingsResponse) ProtoMessage

func (*UpdateSettingsResponse) ProtoMessage()

func (*UpdateSettingsResponse) ProtoReflect

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

func (*UpdateSettingsResponse) Reset

func (x *UpdateSettingsResponse) Reset()

func (*UpdateSettingsResponse) String

func (x *UpdateSettingsResponse) String() string

type Update_AccessTokenTtl

type Update_AccessTokenTtl struct {
	AccessTokenTtl *durationpb.Duration `protobuf:"bytes,4,opt,name=access_token_ttl,json=accessTokenTtl,proto3,oneof"`
}

type Update_AllowRegister

type Update_AllowRegister struct {
	AllowRegister bool `protobuf:"varint,1,opt,name=allow_register,json=allowRegister,proto3,oneof"`
}

type Update_IsVerifiedEmailRequired

type Update_IsVerifiedEmailRequired struct {
	IsVerifiedEmailRequired bool `protobuf:"varint,2,opt,name=is_verified_email_required,json=isVerifiedEmailRequired,proto3,oneof"`
}

type Update_IsVerifiedPhoneRequired

type Update_IsVerifiedPhoneRequired struct {
	IsVerifiedPhoneRequired bool `protobuf:"varint,3,opt,name=is_verified_phone_required,json=isVerifiedPhoneRequired,proto3,oneof"`
}

type Update_LoginMechanisms

type Update_LoginMechanisms struct {
	LoginMechanisms []model.LoginType `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Update_LoginMechanisms) Descriptor deprecated

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

Deprecated: Use Update_LoginMechanisms.ProtoReflect.Descriptor instead.

func (*Update_LoginMechanisms) GetLoginMechanisms

func (x *Update_LoginMechanisms) GetLoginMechanisms() []model.LoginType

func (*Update_LoginMechanisms) ProtoMessage

func (*Update_LoginMechanisms) ProtoMessage()

func (*Update_LoginMechanisms) ProtoReflect

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

func (*Update_LoginMechanisms) Reset

func (x *Update_LoginMechanisms) Reset()

func (*Update_LoginMechanisms) String

func (x *Update_LoginMechanisms) String() string

type Update_LoginMechanisms_

type Update_LoginMechanisms_ struct {
	LoginMechanisms *Update_LoginMechanisms `protobuf:"bytes,8,opt,name=login_mechanisms,json=loginMechanisms,proto3,oneof"`
}

type Update_OauthSettings

type Update_OauthSettings struct {
	OauthSettings *OauthSettings `protobuf:"bytes,9,opt,name=oauth_settings,json=oauthSettings,proto3,oneof"`
}

type Update_PasswordHashing

type Update_PasswordHashing struct {
	PasswordHashing *model.HashingConfig `protobuf:"bytes,7,opt,name=password_hashing,json=passwordHashing,proto3,oneof"`
}

type Update_RefreshTokenTtl

type Update_RefreshTokenTtl struct {
	RefreshTokenTtl *durationpb.Duration `protobuf:"bytes,5,opt,name=refresh_token_ttl,json=refreshTokenTtl,proto3,oneof"`
}

type Update_VerificationCodeTtl

type Update_VerificationCodeTtl struct {
	VerificationCodeTtl *durationpb.Duration `protobuf:"bytes,6,opt,name=verification_code_ttl,json=verificationCodeTtl,proto3,oneof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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