Documentation
¶
Index ¶
- Variables
- func RegisterFreonServiceServer(s grpc.ServiceRegistrar, srv FreonServiceServer)
- type FreonServiceClient
- type FreonServiceServer
- type GetLatestTranslationFilesReq
- func (*GetLatestTranslationFilesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestTranslationFilesReq) GetPlatform() PlatformType
- func (*GetLatestTranslationFilesReq) ProtoMessage()
- func (x *GetLatestTranslationFilesReq) ProtoReflect() protoreflect.Message
- func (x *GetLatestTranslationFilesReq) Reset()
- func (x *GetLatestTranslationFilesReq) String() string
- type GetLatestTranslationFilesRes
- func (*GetLatestTranslationFilesRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestTranslationFilesRes) GetFiles() []*TranslationFile
- func (*GetLatestTranslationFilesRes) ProtoMessage()
- func (x *GetLatestTranslationFilesRes) ProtoReflect() protoreflect.Message
- func (x *GetLatestTranslationFilesRes) Reset()
- func (x *GetLatestTranslationFilesRes) String() string
- type GetListLocalizationsReq
- type GetListLocalizationsRes
- func (*GetListLocalizationsRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetListLocalizationsRes) GetLocalizations() []*Localization
- func (*GetListLocalizationsRes) ProtoMessage()
- func (x *GetListLocalizationsRes) ProtoReflect() protoreflect.Message
- func (x *GetListLocalizationsRes) Reset()
- func (x *GetListLocalizationsRes) String() string
- type GetListTranslationsReq
- func (*GetListTranslationsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetListTranslationsReq) GetLocales() []string
- func (*GetListTranslationsReq) ProtoMessage()
- func (x *GetListTranslationsReq) ProtoReflect() protoreflect.Message
- func (x *GetListTranslationsReq) Reset()
- func (x *GetListTranslationsReq) String() string
- type GetListTranslationsRes
- func (*GetListTranslationsRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetListTranslationsRes) GetGroupedTranslations() []*GroupedTranslations
- func (*GetListTranslationsRes) ProtoMessage()
- func (x *GetListTranslationsRes) ProtoReflect() protoreflect.Message
- func (x *GetListTranslationsRes) Reset()
- func (x *GetListTranslationsRes) String() string
- type GetTranslationReq
- func (*GetTranslationReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetTranslationReq) GetIdentifierName() string
- func (x *GetTranslationReq) GetLocale() string
- func (*GetTranslationReq) ProtoMessage()
- func (x *GetTranslationReq) ProtoReflect() protoreflect.Message
- func (x *GetTranslationReq) Reset()
- func (x *GetTranslationReq) String() string
- type GetTranslationRes
- func (*GetTranslationRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetTranslationRes) GetTranslation() *Translation
- func (*GetTranslationRes) ProtoMessage()
- func (x *GetTranslationRes) ProtoReflect() protoreflect.Message
- func (x *GetTranslationRes) Reset()
- func (x *GetTranslationRes) String() string
- type GroupedTranslations
- func (*GroupedTranslations) Descriptor() ([]byte, []int)deprecated
- func (x *GroupedTranslations) GetLocale() string
- func (x *GroupedTranslations) GetTranslations() []*Translation
- func (*GroupedTranslations) ProtoMessage()
- func (x *GroupedTranslations) ProtoReflect() protoreflect.Message
- func (x *GroupedTranslations) Reset()
- func (x *GroupedTranslations) String() string
- type Localization
- func (*Localization) Descriptor() ([]byte, []int)deprecated
- func (x *Localization) GetId() int64
- func (x *Localization) GetLangName() string
- func (x *Localization) GetLocale() string
- func (*Localization) ProtoMessage()
- func (x *Localization) ProtoReflect() protoreflect.Message
- func (x *Localization) Reset()
- func (x *Localization) String() string
- type PlatformType
- func (PlatformType) Descriptor() protoreflect.EnumDescriptor
- func (x PlatformType) Enum() *PlatformType
- func (PlatformType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PlatformType) Number() protoreflect.EnumNumber
- func (x PlatformType) String() string
- func (PlatformType) Type() protoreflect.EnumType
- type S3Configuration
- func (*S3Configuration) Descriptor() ([]byte, []int)deprecated
- func (x *S3Configuration) GetAccessKeyID() string
- func (x *S3Configuration) GetDisableSSL() bool
- func (x *S3Configuration) GetEndpoint() string
- func (x *S3Configuration) GetForcePathStyle() bool
- func (x *S3Configuration) GetRegion() string
- func (x *S3Configuration) GetSecretAccessKey() string
- func (*S3Configuration) ProtoMessage()
- func (x *S3Configuration) ProtoReflect() protoreflect.Message
- func (x *S3Configuration) Reset()
- func (x *S3Configuration) String() string
- type SettingConfiguration
- func (*SettingConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *SettingConfiguration) GetStorage() *StorageConfiguration
- func (x *SettingConfiguration) GetTranslation() *TranslationConfiguration
- func (*SettingConfiguration) ProtoMessage()
- func (x *SettingConfiguration) ProtoReflect() protoreflect.Message
- func (x *SettingConfiguration) Reset()
- func (x *SettingConfiguration) String() string
- type Status
- type StatusTranslation
- func (StatusTranslation) Descriptor() protoreflect.EnumDescriptor
- func (x StatusTranslation) Enum() *StatusTranslation
- func (StatusTranslation) EnumDescriptor() ([]byte, []int)deprecated
- func (x StatusTranslation) Number() protoreflect.EnumNumber
- func (x StatusTranslation) String() string
- func (StatusTranslation) Type() protoreflect.EnumType
- type StorageConfiguration
- func (*StorageConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *StorageConfiguration) GetS3Configuration() *S3Configuration
- func (x *StorageConfiguration) GetUse() StorageType
- func (*StorageConfiguration) ProtoMessage()
- func (x *StorageConfiguration) ProtoReflect() protoreflect.Message
- func (x *StorageConfiguration) Reset()
- func (x *StorageConfiguration) String() string
- type StorageType
- func (StorageType) Descriptor() protoreflect.EnumDescriptor
- func (x StorageType) Enum() *StorageType
- func (StorageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x StorageType) Number() protoreflect.EnumNumber
- func (x StorageType) String() string
- func (StorageType) Type() protoreflect.EnumType
- type Translation
- func (*Translation) Descriptor() ([]byte, []int)deprecated
- func (x *Translation) GetId() int64
- func (x *Translation) GetIdentifier() string
- func (x *Translation) GetLocalization() string
- func (x *Translation) GetPlural() string
- func (x *Translation) GetSingular() string
- func (*Translation) ProtoMessage()
- func (x *Translation) ProtoReflect() protoreflect.Message
- func (x *Translation) Reset()
- func (x *Translation) String() string
- type TranslationConfiguration
- func (*TranslationConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationConfiguration) GetAuto() bool
- func (x *TranslationConfiguration) GetMainLanguage() string
- func (x *TranslationConfiguration) GetUse() TranslationSource
- func (*TranslationConfiguration) ProtoMessage()
- func (x *TranslationConfiguration) ProtoReflect() protoreflect.Message
- func (x *TranslationConfiguration) Reset()
- func (x *TranslationConfiguration) String() string
- type TranslationFile
- func (*TranslationFile) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationFile) GetFileName() string
- func (x *TranslationFile) GetLangName() string
- func (x *TranslationFile) GetPath() string
- func (*TranslationFile) ProtoMessage()
- func (x *TranslationFile) ProtoReflect() protoreflect.Message
- func (x *TranslationFile) Reset()
- func (x *TranslationFile) String() string
- type TranslationSource
- func (TranslationSource) Descriptor() protoreflect.EnumDescriptor
- func (x TranslationSource) Enum() *TranslationSource
- func (TranslationSource) EnumDescriptor() ([]byte, []int)deprecated
- func (x TranslationSource) Number() protoreflect.EnumNumber
- func (x TranslationSource) String() string
- func (TranslationSource) Type() protoreflect.EnumType
- type UnimplementedFreonServiceServer
- func (UnimplementedFreonServiceServer) GetLatestTranslationFiles(context.Context, *GetLatestTranslationFilesReq) (*GetLatestTranslationFilesRes, error)
- func (UnimplementedFreonServiceServer) GetListLocalizations(context.Context, *GetListLocalizationsReq) (*GetListLocalizationsRes, error)
- func (UnimplementedFreonServiceServer) GetListTranslations(context.Context, *GetListTranslationsReq) (*GetListTranslationsRes, error)
- func (UnimplementedFreonServiceServer) GetTranslation(context.Context, *GetTranslationReq) (*GetTranslationRes, error)
- type UnsafeFreonServiceServer
- type UserRole
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
var ( UserStatus_name = map[int32]string{ 0: "USER_ACTIVE", 1: "USER_NOT_ACTIVE", 2: "USER_IS_BANNED", } UserStatus_value = map[string]int32{ "USER_ACTIVE": 0, "USER_NOT_ACTIVE": 1, "USER_IS_BANNED": 2, } )
Enum value maps for UserStatus.
var ( UserRole_name = map[int32]string{ 0: "USER_ROLE_USER", 1: "USER_ROLE_TRANSLATOR", 2: "USER_ROLE_MODERATOR", 3: "USER_ROLE_ADMIN", } UserRole_value = map[string]int32{ "USER_ROLE_USER": 0, "USER_ROLE_TRANSLATOR": 1, "USER_ROLE_MODERATOR": 2, "USER_ROLE_ADMIN": 3, } )
Enum value maps for UserRole.
var ( Status_name = map[int32]string{ 0: "ACTIVE", 1: "NOT_ACTIVE", } Status_value = map[string]int32{ "ACTIVE": 0, "NOT_ACTIVE": 1, } )
Enum value maps for Status.
var ( StatusTranslation_name = map[int32]string{ 0: "HIDDEN", 1: "DRAFT", 2: "RELEASE", } StatusTranslation_value = map[string]int32{ "HIDDEN": 0, "DRAFT": 1, "RELEASE": 2, } )
Enum value maps for StatusTranslation.
var ( StorageType_name = map[int32]string{ 0: "STORAGE_TYPE_LOCAL", 1: "STORAGE_TYPE_S3", } StorageType_value = map[string]int32{ "STORAGE_TYPE_LOCAL": 0, "STORAGE_TYPE_S3": 1, } )
Enum value maps for StorageType.
var ( PlatformType_name = map[int32]string{ 0: "PLATFORM_TYPE_WEB", 1: "PLATFORM_TYPE_IOS", 2: "PLATFORM_TYPE_ANDROID", 3: "PLATFORM_TYPE_SKIP", } PlatformType_value = map[string]int32{ "PLATFORM_TYPE_WEB": 0, "PLATFORM_TYPE_IOS": 1, "PLATFORM_TYPE_ANDROID": 2, "PLATFORM_TYPE_SKIP": 3, } )
Enum value maps for PlatformType.
var ( TranslationSource_name = map[int32]string{ 0: "TRANSLATION_NONE", 1: "TRANSLATION_LIBRA", 2: "TRANSLATION_GOOGLE", } TranslationSource_value = map[string]int32{ "TRANSLATION_NONE": 0, "TRANSLATION_LIBRA": 1, "TRANSLATION_GOOGLE": 2, } )
Enum value maps for TranslationSource.
var File_const_proto protoreflect.FileDescriptor
var File_freon_service_proto protoreflect.FileDescriptor
var File_localization_proto protoreflect.FileDescriptor
var File_translation_file_proto protoreflect.FileDescriptor
var File_translation_proto protoreflect.FileDescriptor
var FreonService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "freon.FreonService", HandlerType: (*FreonServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetListLocalizations", Handler: _FreonService_GetListLocalizations_Handler, }, { MethodName: "GetListTranslations", Handler: _FreonService_GetListTranslations_Handler, }, { MethodName: "GetTranslation", Handler: _FreonService_GetTranslation_Handler, }, { MethodName: "GetLatestTranslationFiles", Handler: _FreonService_GetLatestTranslationFiles_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "freon_service.proto", }
FreonService_ServiceDesc is the grpc.ServiceDesc for FreonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFreonServiceServer ¶
func RegisterFreonServiceServer(s grpc.ServiceRegistrar, srv FreonServiceServer)
Types ¶
type FreonServiceClient ¶
type FreonServiceClient interface { GetListLocalizations(ctx context.Context, in *GetListLocalizationsReq, opts ...grpc.CallOption) (*GetListLocalizationsRes, error) GetListTranslations(ctx context.Context, in *GetListTranslationsReq, opts ...grpc.CallOption) (*GetListTranslationsRes, error) GetTranslation(ctx context.Context, in *GetTranslationReq, opts ...grpc.CallOption) (*GetTranslationRes, error) GetLatestTranslationFiles(ctx context.Context, in *GetLatestTranslationFilesReq, opts ...grpc.CallOption) (*GetLatestTranslationFilesRes, error) }
FreonServiceClient is the client API for FreonService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFreonServiceClient ¶
func NewFreonServiceClient(cc grpc.ClientConnInterface) FreonServiceClient
type FreonServiceServer ¶
type FreonServiceServer interface { GetListLocalizations(context.Context, *GetListLocalizationsReq) (*GetListLocalizationsRes, error) GetListTranslations(context.Context, *GetListTranslationsReq) (*GetListTranslationsRes, error) GetTranslation(context.Context, *GetTranslationReq) (*GetTranslationRes, error) GetLatestTranslationFiles(context.Context, *GetLatestTranslationFilesReq) (*GetLatestTranslationFilesRes, error) }
FreonServiceServer is the server API for FreonService service. All implementations should embed UnimplementedFreonServiceServer for forward compatibility
type GetLatestTranslationFilesReq ¶
type GetLatestTranslationFilesReq struct { Platform PlatformType `protobuf:"varint,1,opt,name=platform,proto3,enum=freon.PlatformType" json:"platform,omitempty"` // contains filtered or unexported fields }
func (*GetLatestTranslationFilesReq) Descriptor
deprecated
func (*GetLatestTranslationFilesReq) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestTranslationFilesReq.ProtoReflect.Descriptor instead.
func (*GetLatestTranslationFilesReq) GetPlatform ¶
func (x *GetLatestTranslationFilesReq) GetPlatform() PlatformType
func (*GetLatestTranslationFilesReq) ProtoMessage ¶
func (*GetLatestTranslationFilesReq) ProtoMessage()
func (*GetLatestTranslationFilesReq) ProtoReflect ¶
func (x *GetLatestTranslationFilesReq) ProtoReflect() protoreflect.Message
func (*GetLatestTranslationFilesReq) Reset ¶
func (x *GetLatestTranslationFilesReq) Reset()
func (*GetLatestTranslationFilesReq) String ¶
func (x *GetLatestTranslationFilesReq) String() string
type GetLatestTranslationFilesRes ¶
type GetLatestTranslationFilesRes struct { Files []*TranslationFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*GetLatestTranslationFilesRes) Descriptor
deprecated
func (*GetLatestTranslationFilesRes) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestTranslationFilesRes.ProtoReflect.Descriptor instead.
func (*GetLatestTranslationFilesRes) GetFiles ¶
func (x *GetLatestTranslationFilesRes) GetFiles() []*TranslationFile
func (*GetLatestTranslationFilesRes) ProtoMessage ¶
func (*GetLatestTranslationFilesRes) ProtoMessage()
func (*GetLatestTranslationFilesRes) ProtoReflect ¶
func (x *GetLatestTranslationFilesRes) ProtoReflect() protoreflect.Message
func (*GetLatestTranslationFilesRes) Reset ¶
func (x *GetLatestTranslationFilesRes) Reset()
func (*GetLatestTranslationFilesRes) String ¶
func (x *GetLatestTranslationFilesRes) String() string
type GetListLocalizationsReq ¶
type GetListLocalizationsReq struct {
// contains filtered or unexported fields
}
func (*GetListLocalizationsReq) Descriptor
deprecated
func (*GetListLocalizationsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetListLocalizationsReq.ProtoReflect.Descriptor instead.
func (*GetListLocalizationsReq) ProtoMessage ¶
func (*GetListLocalizationsReq) ProtoMessage()
func (*GetListLocalizationsReq) ProtoReflect ¶
func (x *GetListLocalizationsReq) ProtoReflect() protoreflect.Message
func (*GetListLocalizationsReq) Reset ¶
func (x *GetListLocalizationsReq) Reset()
func (*GetListLocalizationsReq) String ¶
func (x *GetListLocalizationsReq) String() string
type GetListLocalizationsRes ¶
type GetListLocalizationsRes struct { Localizations []*Localization `protobuf:"bytes,1,rep,name=localizations,proto3" json:"localizations,omitempty"` // contains filtered or unexported fields }
func (*GetListLocalizationsRes) Descriptor
deprecated
func (*GetListLocalizationsRes) Descriptor() ([]byte, []int)
Deprecated: Use GetListLocalizationsRes.ProtoReflect.Descriptor instead.
func (*GetListLocalizationsRes) GetLocalizations ¶
func (x *GetListLocalizationsRes) GetLocalizations() []*Localization
func (*GetListLocalizationsRes) ProtoMessage ¶
func (*GetListLocalizationsRes) ProtoMessage()
func (*GetListLocalizationsRes) ProtoReflect ¶
func (x *GetListLocalizationsRes) ProtoReflect() protoreflect.Message
func (*GetListLocalizationsRes) Reset ¶
func (x *GetListLocalizationsRes) Reset()
func (*GetListLocalizationsRes) String ¶
func (x *GetListLocalizationsRes) String() string
type GetListTranslationsReq ¶
type GetListTranslationsReq struct { Locales []string `protobuf:"bytes,1,rep,name=locales,proto3" json:"locales,omitempty"` // localization local // contains filtered or unexported fields }
func (*GetListTranslationsReq) Descriptor
deprecated
func (*GetListTranslationsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetListTranslationsReq.ProtoReflect.Descriptor instead.
func (*GetListTranslationsReq) GetLocales ¶
func (x *GetListTranslationsReq) GetLocales() []string
func (*GetListTranslationsReq) ProtoMessage ¶
func (*GetListTranslationsReq) ProtoMessage()
func (*GetListTranslationsReq) ProtoReflect ¶
func (x *GetListTranslationsReq) ProtoReflect() protoreflect.Message
func (*GetListTranslationsReq) Reset ¶
func (x *GetListTranslationsReq) Reset()
func (*GetListTranslationsReq) String ¶
func (x *GetListTranslationsReq) String() string
type GetListTranslationsRes ¶
type GetListTranslationsRes struct { GroupedTranslations []*GroupedTranslations `protobuf:"bytes,1,rep,name=grouped_translations,json=groupedTranslations,proto3" json:"grouped_translations,omitempty"` // contains filtered or unexported fields }
func (*GetListTranslationsRes) Descriptor
deprecated
func (*GetListTranslationsRes) Descriptor() ([]byte, []int)
Deprecated: Use GetListTranslationsRes.ProtoReflect.Descriptor instead.
func (*GetListTranslationsRes) GetGroupedTranslations ¶
func (x *GetListTranslationsRes) GetGroupedTranslations() []*GroupedTranslations
func (*GetListTranslationsRes) ProtoMessage ¶
func (*GetListTranslationsRes) ProtoMessage()
func (*GetListTranslationsRes) ProtoReflect ¶
func (x *GetListTranslationsRes) ProtoReflect() protoreflect.Message
func (*GetListTranslationsRes) Reset ¶
func (x *GetListTranslationsRes) Reset()
func (*GetListTranslationsRes) String ¶
func (x *GetListTranslationsRes) String() string
type GetTranslationReq ¶
type GetTranslationReq struct { Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` // localization local IdentifierName string `protobuf:"bytes,2,opt,name=identifier_name,json=identifierName,proto3" json:"identifier_name,omitempty"` // identifier name // contains filtered or unexported fields }
func (*GetTranslationReq) Descriptor
deprecated
func (*GetTranslationReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTranslationReq.ProtoReflect.Descriptor instead.
func (*GetTranslationReq) GetIdentifierName ¶
func (x *GetTranslationReq) GetIdentifierName() string
func (*GetTranslationReq) GetLocale ¶
func (x *GetTranslationReq) GetLocale() string
func (*GetTranslationReq) ProtoMessage ¶
func (*GetTranslationReq) ProtoMessage()
func (*GetTranslationReq) ProtoReflect ¶
func (x *GetTranslationReq) ProtoReflect() protoreflect.Message
func (*GetTranslationReq) Reset ¶
func (x *GetTranslationReq) Reset()
func (*GetTranslationReq) String ¶
func (x *GetTranslationReq) String() string
type GetTranslationRes ¶
type GetTranslationRes struct { Translation *Translation `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"` // contains filtered or unexported fields }
func (*GetTranslationRes) Descriptor
deprecated
func (*GetTranslationRes) Descriptor() ([]byte, []int)
Deprecated: Use GetTranslationRes.ProtoReflect.Descriptor instead.
func (*GetTranslationRes) GetTranslation ¶
func (x *GetTranslationRes) GetTranslation() *Translation
func (*GetTranslationRes) ProtoMessage ¶
func (*GetTranslationRes) ProtoMessage()
func (*GetTranslationRes) ProtoReflect ¶
func (x *GetTranslationRes) ProtoReflect() protoreflect.Message
func (*GetTranslationRes) Reset ¶
func (x *GetTranslationRes) Reset()
func (*GetTranslationRes) String ¶
func (x *GetTranslationRes) String() string
type GroupedTranslations ¶
type GroupedTranslations struct { Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` Translations []*Translation `protobuf:"bytes,2,rep,name=translations,proto3" json:"translations,omitempty"` // contains filtered or unexported fields }
func (*GroupedTranslations) Descriptor
deprecated
func (*GroupedTranslations) Descriptor() ([]byte, []int)
Deprecated: Use GroupedTranslations.ProtoReflect.Descriptor instead.
func (*GroupedTranslations) GetLocale ¶
func (x *GroupedTranslations) GetLocale() string
func (*GroupedTranslations) GetTranslations ¶
func (x *GroupedTranslations) GetTranslations() []*Translation
func (*GroupedTranslations) ProtoMessage ¶
func (*GroupedTranslations) ProtoMessage()
func (*GroupedTranslations) ProtoReflect ¶
func (x *GroupedTranslations) ProtoReflect() protoreflect.Message
func (*GroupedTranslations) Reset ¶
func (x *GroupedTranslations) Reset()
func (*GroupedTranslations) String ¶
func (x *GroupedTranslations) String() string
type Localization ¶
type Localization struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Locale string `protobuf:"bytes,2,opt,name=locale,proto3" json:"locale,omitempty"` LangName string `protobuf:"bytes,3,opt,name=lang_name,json=langName,proto3" json:"lang_name,omitempty"` // contains filtered or unexported fields }
func (*Localization) Descriptor
deprecated
func (*Localization) Descriptor() ([]byte, []int)
Deprecated: Use Localization.ProtoReflect.Descriptor instead.
func (*Localization) GetId ¶
func (x *Localization) GetId() int64
func (*Localization) GetLangName ¶
func (x *Localization) GetLangName() string
func (*Localization) GetLocale ¶
func (x *Localization) GetLocale() string
func (*Localization) ProtoMessage ¶
func (*Localization) ProtoMessage()
func (*Localization) ProtoReflect ¶
func (x *Localization) ProtoReflect() protoreflect.Message
func (*Localization) Reset ¶
func (x *Localization) Reset()
func (*Localization) String ¶
func (x *Localization) String() string
type PlatformType ¶
type PlatformType int32
const ( PlatformType_PLATFORM_TYPE_WEB PlatformType = 0 PlatformType_PLATFORM_TYPE_IOS PlatformType = 1 PlatformType_PLATFORM_TYPE_ANDROID PlatformType = 2 PlatformType_PLATFORM_TYPE_SKIP PlatformType = 3 // skipped, using for checking new update translation with grpc )
func (PlatformType) Descriptor ¶
func (PlatformType) Descriptor() protoreflect.EnumDescriptor
func (PlatformType) Enum ¶
func (x PlatformType) Enum() *PlatformType
func (PlatformType) EnumDescriptor
deprecated
func (PlatformType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PlatformType.Descriptor instead.
func (PlatformType) Number ¶
func (x PlatformType) Number() protoreflect.EnumNumber
func (PlatformType) String ¶
func (x PlatformType) String() string
func (PlatformType) Type ¶
func (PlatformType) Type() protoreflect.EnumType
type S3Configuration ¶
type S3Configuration struct { SecretAccessKey string `protobuf:"bytes,1,opt,name=SecretAccessKey,proto3" json:"SecretAccessKey,omitempty"` AccessKeyID string `protobuf:"bytes,2,opt,name=AccessKeyID,proto3" json:"AccessKeyID,omitempty"` Region string `protobuf:"bytes,3,opt,name=Region,proto3" json:"Region,omitempty"` Endpoint string `protobuf:"bytes,4,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"` DisableSSL bool `protobuf:"varint,5,opt,name=DisableSSL,proto3" json:"DisableSSL,omitempty"` ForcePathStyle bool `protobuf:"varint,6,opt,name=ForcePathStyle,proto3" json:"ForcePathStyle,omitempty"` // contains filtered or unexported fields }
func (*S3Configuration) Descriptor
deprecated
func (*S3Configuration) Descriptor() ([]byte, []int)
Deprecated: Use S3Configuration.ProtoReflect.Descriptor instead.
func (*S3Configuration) GetAccessKeyID ¶
func (x *S3Configuration) GetAccessKeyID() string
func (*S3Configuration) GetDisableSSL ¶
func (x *S3Configuration) GetDisableSSL() bool
func (*S3Configuration) GetEndpoint ¶
func (x *S3Configuration) GetEndpoint() string
func (*S3Configuration) GetForcePathStyle ¶
func (x *S3Configuration) GetForcePathStyle() bool
func (*S3Configuration) GetRegion ¶
func (x *S3Configuration) GetRegion() string
func (*S3Configuration) GetSecretAccessKey ¶
func (x *S3Configuration) GetSecretAccessKey() string
func (*S3Configuration) ProtoMessage ¶
func (*S3Configuration) ProtoMessage()
func (*S3Configuration) ProtoReflect ¶
func (x *S3Configuration) ProtoReflect() protoreflect.Message
func (*S3Configuration) Reset ¶
func (x *S3Configuration) Reset()
func (*S3Configuration) String ¶
func (x *S3Configuration) String() string
type SettingConfiguration ¶
type SettingConfiguration struct { Storage *StorageConfiguration `protobuf:"bytes,1,opt,name=Storage,proto3" json:"Storage,omitempty"` Translation *TranslationConfiguration `protobuf:"bytes,2,opt,name=Translation,proto3" json:"Translation,omitempty"` // contains filtered or unexported fields }
func (*SettingConfiguration) Descriptor
deprecated
func (*SettingConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use SettingConfiguration.ProtoReflect.Descriptor instead.
func (*SettingConfiguration) GetStorage ¶
func (x *SettingConfiguration) GetStorage() *StorageConfiguration
func (*SettingConfiguration) GetTranslation ¶
func (x *SettingConfiguration) GetTranslation() *TranslationConfiguration
func (*SettingConfiguration) ProtoMessage ¶
func (*SettingConfiguration) ProtoMessage()
func (*SettingConfiguration) ProtoReflect ¶
func (x *SettingConfiguration) ProtoReflect() protoreflect.Message
func (*SettingConfiguration) Reset ¶
func (x *SettingConfiguration) Reset()
func (*SettingConfiguration) String ¶
func (x *SettingConfiguration) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type StatusTranslation ¶
type StatusTranslation int32
const ( StatusTranslation_HIDDEN StatusTranslation = 0 StatusTranslation_DRAFT StatusTranslation = 1 StatusTranslation_RELEASE StatusTranslation = 2 )
func (StatusTranslation) Descriptor ¶
func (StatusTranslation) Descriptor() protoreflect.EnumDescriptor
func (StatusTranslation) Enum ¶
func (x StatusTranslation) Enum() *StatusTranslation
func (StatusTranslation) EnumDescriptor
deprecated
func (StatusTranslation) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusTranslation.Descriptor instead.
func (StatusTranslation) Number ¶
func (x StatusTranslation) Number() protoreflect.EnumNumber
func (StatusTranslation) String ¶
func (x StatusTranslation) String() string
func (StatusTranslation) Type ¶
func (StatusTranslation) Type() protoreflect.EnumType
type StorageConfiguration ¶
type StorageConfiguration struct { Use StorageType `protobuf:"varint,1,opt,name=Use,proto3,enum=freon.StorageType" json:"Use,omitempty"` S3Configuration *S3Configuration `protobuf:"bytes,2,opt,name=S3Configuration,proto3" json:"S3Configuration,omitempty"` // contains filtered or unexported fields }
func (*StorageConfiguration) Descriptor
deprecated
func (*StorageConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use StorageConfiguration.ProtoReflect.Descriptor instead.
func (*StorageConfiguration) GetS3Configuration ¶
func (x *StorageConfiguration) GetS3Configuration() *S3Configuration
func (*StorageConfiguration) GetUse ¶
func (x *StorageConfiguration) GetUse() StorageType
func (*StorageConfiguration) ProtoMessage ¶
func (*StorageConfiguration) ProtoMessage()
func (*StorageConfiguration) ProtoReflect ¶
func (x *StorageConfiguration) ProtoReflect() protoreflect.Message
func (*StorageConfiguration) Reset ¶
func (x *StorageConfiguration) Reset()
func (*StorageConfiguration) String ¶
func (x *StorageConfiguration) String() string
type StorageType ¶
type StorageType int32
const ( StorageType_STORAGE_TYPE_LOCAL StorageType = 0 StorageType_STORAGE_TYPE_S3 StorageType = 1 )
func (StorageType) Descriptor ¶
func (StorageType) Descriptor() protoreflect.EnumDescriptor
func (StorageType) Enum ¶
func (x StorageType) Enum() *StorageType
func (StorageType) EnumDescriptor
deprecated
func (StorageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StorageType.Descriptor instead.
func (StorageType) Number ¶
func (x StorageType) Number() protoreflect.EnumNumber
func (StorageType) String ¶
func (x StorageType) String() string
func (StorageType) Type ¶
func (StorageType) Type() protoreflect.EnumType
type Translation ¶
type Translation struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` Singular string `protobuf:"bytes,3,opt,name=singular,proto3" json:"singular,omitempty"` Plural string `protobuf:"bytes,4,opt,name=plural,proto3" json:"plural,omitempty"` Localization string `protobuf:"bytes,5,opt,name=localization,proto3" json:"localization,omitempty"` // contains filtered or unexported fields }
func (*Translation) Descriptor
deprecated
func (*Translation) Descriptor() ([]byte, []int)
Deprecated: Use Translation.ProtoReflect.Descriptor instead.
func (*Translation) GetId ¶
func (x *Translation) GetId() int64
func (*Translation) GetIdentifier ¶
func (x *Translation) GetIdentifier() string
func (*Translation) GetLocalization ¶
func (x *Translation) GetLocalization() string
func (*Translation) GetPlural ¶
func (x *Translation) GetPlural() string
func (*Translation) GetSingular ¶
func (x *Translation) GetSingular() string
func (*Translation) ProtoMessage ¶
func (*Translation) ProtoMessage()
func (*Translation) ProtoReflect ¶
func (x *Translation) ProtoReflect() protoreflect.Message
func (*Translation) Reset ¶
func (x *Translation) Reset()
func (*Translation) String ¶
func (x *Translation) String() string
type TranslationConfiguration ¶
type TranslationConfiguration struct { Auto bool `protobuf:"varint,1,opt,name=Auto,proto3" json:"Auto,omitempty"` Use TranslationSource `protobuf:"varint,2,opt,name=Use,proto3,enum=freon.TranslationSource" json:"Use,omitempty"` MainLanguage string `protobuf:"bytes,3,opt,name=MainLanguage,proto3" json:"MainLanguage,omitempty"` // contains filtered or unexported fields }
func (*TranslationConfiguration) Descriptor
deprecated
func (*TranslationConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use TranslationConfiguration.ProtoReflect.Descriptor instead.
func (*TranslationConfiguration) GetAuto ¶
func (x *TranslationConfiguration) GetAuto() bool
func (*TranslationConfiguration) GetMainLanguage ¶
func (x *TranslationConfiguration) GetMainLanguage() string
func (*TranslationConfiguration) GetUse ¶
func (x *TranslationConfiguration) GetUse() TranslationSource
func (*TranslationConfiguration) ProtoMessage ¶
func (*TranslationConfiguration) ProtoMessage()
func (*TranslationConfiguration) ProtoReflect ¶
func (x *TranslationConfiguration) ProtoReflect() protoreflect.Message
func (*TranslationConfiguration) Reset ¶
func (x *TranslationConfiguration) Reset()
func (*TranslationConfiguration) String ¶
func (x *TranslationConfiguration) String() string
type TranslationFile ¶
type TranslationFile struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` LangName string `protobuf:"bytes,2,opt,name=lang_name,json=langName,proto3" json:"lang_name,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*TranslationFile) Descriptor
deprecated
func (*TranslationFile) Descriptor() ([]byte, []int)
Deprecated: Use TranslationFile.ProtoReflect.Descriptor instead.
func (*TranslationFile) GetFileName ¶
func (x *TranslationFile) GetFileName() string
func (*TranslationFile) GetLangName ¶
func (x *TranslationFile) GetLangName() string
func (*TranslationFile) GetPath ¶
func (x *TranslationFile) GetPath() string
func (*TranslationFile) ProtoMessage ¶
func (*TranslationFile) ProtoMessage()
func (*TranslationFile) ProtoReflect ¶
func (x *TranslationFile) ProtoReflect() protoreflect.Message
func (*TranslationFile) Reset ¶
func (x *TranslationFile) Reset()
func (*TranslationFile) String ¶
func (x *TranslationFile) String() string
type TranslationSource ¶
type TranslationSource int32
const ( TranslationSource_TRANSLATION_NONE TranslationSource = 0 TranslationSource_TRANSLATION_LIBRA TranslationSource = 1 TranslationSource_TRANSLATION_GOOGLE TranslationSource = 2 )
func (TranslationSource) Descriptor ¶
func (TranslationSource) Descriptor() protoreflect.EnumDescriptor
func (TranslationSource) Enum ¶
func (x TranslationSource) Enum() *TranslationSource
func (TranslationSource) EnumDescriptor
deprecated
func (TranslationSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use TranslationSource.Descriptor instead.
func (TranslationSource) Number ¶
func (x TranslationSource) Number() protoreflect.EnumNumber
func (TranslationSource) String ¶
func (x TranslationSource) String() string
func (TranslationSource) Type ¶
func (TranslationSource) Type() protoreflect.EnumType
type UnimplementedFreonServiceServer ¶
type UnimplementedFreonServiceServer struct { }
UnimplementedFreonServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFreonServiceServer) GetLatestTranslationFiles ¶
func (UnimplementedFreonServiceServer) GetLatestTranslationFiles(context.Context, *GetLatestTranslationFilesReq) (*GetLatestTranslationFilesRes, error)
func (UnimplementedFreonServiceServer) GetListLocalizations ¶
func (UnimplementedFreonServiceServer) GetListLocalizations(context.Context, *GetListLocalizationsReq) (*GetListLocalizationsRes, error)
func (UnimplementedFreonServiceServer) GetListTranslations ¶
func (UnimplementedFreonServiceServer) GetListTranslations(context.Context, *GetListTranslationsReq) (*GetListTranslationsRes, error)
func (UnimplementedFreonServiceServer) GetTranslation ¶
func (UnimplementedFreonServiceServer) GetTranslation(context.Context, *GetTranslationReq) (*GetTranslationRes, error)
type UnsafeFreonServiceServer ¶
type UnsafeFreonServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFreonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FreonServiceServer will result in compilation errors.
type UserRole ¶
type UserRole int32
func (UserRole) Descriptor ¶
func (UserRole) Descriptor() protoreflect.EnumDescriptor
func (UserRole) EnumDescriptor
deprecated
func (UserRole) Number ¶
func (x UserRole) Number() protoreflect.EnumNumber
func (UserRole) Type ¶
func (UserRole) Type() protoreflect.EnumType
type UserStatus ¶
type UserStatus int32
const ( UserStatus_USER_ACTIVE UserStatus = 0 UserStatus_USER_NOT_ACTIVE UserStatus = 1 UserStatus_USER_IS_BANNED UserStatus = 2 )
func (UserStatus) Descriptor ¶
func (UserStatus) Descriptor() protoreflect.EnumDescriptor
func (UserStatus) Enum ¶
func (x UserStatus) Enum() *UserStatus
func (UserStatus) EnumDescriptor
deprecated
func (UserStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserStatus.Descriptor instead.
func (UserStatus) Number ¶
func (x UserStatus) Number() protoreflect.EnumNumber
func (UserStatus) String ¶
func (x UserStatus) String() string
func (UserStatus) Type ¶
func (UserStatus) Type() protoreflect.EnumType