Documentation
¶
Index ¶
- Variables
- func RegisterConfigServiceServer(s *grpc.Server, srv ConfigServiceServer)
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAndroidUpdateUrl() string
- func (x *Config) GetApiBaseUrl() string
- func (x *Config) GetAvatarPushBaseUrl() string
- func (x *Config) GetInviteCodeBaseUrl() string
- func (x *Config) GetInviteCodeBaseUrls() []string
- func (x *Config) GetIosUpdateUrl() string
- func (x *Config) GetLatestAppVersion() string
- func (x *Config) GetMinCompatibleAppVersion() string
- func (x *Config) GetOnboardingImages() []string
- func (x *Config) GetSupportEmail() string
- func (x *Config) GetSupportedCountries() []string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ConfigServiceClient
- type ConfigServiceServer
- type GetAppConfigResponse
- func (*GetAppConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAppConfigResponse) GetConfig() *Config
- func (*GetAppConfigResponse) ProtoMessage()
- func (x *GetAppConfigResponse) ProtoReflect() protoreflect.Message
- func (x *GetAppConfigResponse) Reset()
- func (x *GetAppConfigResponse) String() string
- type GetLanguagesResponse
- func (*GetLanguagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLanguagesResponse) GetLanguages() []*Language
- func (*GetLanguagesResponse) ProtoMessage()
- func (x *GetLanguagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetLanguagesResponse) Reset()
- func (x *GetLanguagesResponse) String() string
- type Language
- func (*Language) Descriptor() ([]byte, []int)deprecated
- func (x *Language) GetCode() string
- func (x *Language) GetEnglishName() string
- func (x *Language) GetNativeName() string
- func (*Language) ProtoMessage()
- func (x *Language) ProtoReflect() protoreflect.Message
- func (x *Language) Reset()
- func (x *Language) String() string
- type UnimplementedConfigServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_protobuf_spec_config_config_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConfigServiceServer ¶ added in v0.4.4
func RegisterConfigServiceServer(s *grpc.Server, srv ConfigServiceServer)
Types ¶
type Config ¶
type Config struct { LatestAppVersion string `protobuf:"bytes,1,opt,name=latest_app_version,json=latestAppVersion,proto3" json:"latest_app_version,omitempty"` MinCompatibleAppVersion string `` /* 134-byte string literal not displayed */ SupportEmail string `protobuf:"bytes,3,opt,name=support_email,json=supportEmail,proto3" json:"support_email,omitempty"` ApiBaseUrl string `protobuf:"bytes,4,opt,name=api_base_url,json=apiBaseUrl,proto3" json:"api_base_url,omitempty"` AvatarPushBaseUrl string `protobuf:"bytes,5,opt,name=avatar_push_base_url,json=avatarPushBaseUrl,proto3" json:"avatar_push_base_url,omitempty"` IosUpdateUrl string `protobuf:"bytes,6,opt,name=ios_update_url,json=iosUpdateUrl,proto3" json:"ios_update_url,omitempty"` AndroidUpdateUrl string `protobuf:"bytes,7,opt,name=android_update_url,json=androidUpdateUrl,proto3" json:"android_update_url,omitempty"` InviteCodeBaseUrl string `protobuf:"bytes,8,opt,name=invite_code_base_url,json=inviteCodeBaseUrl,proto3" json:"invite_code_base_url,omitempty"` InviteCodeBaseUrls []string `protobuf:"bytes,9,rep,name=invite_code_base_urls,json=inviteCodeBaseUrls,proto3" json:"invite_code_base_urls,omitempty"` OnboardingImages []string `protobuf:"bytes,10,rep,name=onboarding_images,json=onboardingImages,proto3" json:"onboarding_images,omitempty"` SupportedCountries []string `protobuf:"bytes,11,rep,name=supported_countries,json=supportedCountries,proto3" json:"supported_countries,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAndroidUpdateUrl ¶
func (*Config) GetApiBaseUrl ¶
func (*Config) GetAvatarPushBaseUrl ¶
func (*Config) GetInviteCodeBaseUrl ¶
func (*Config) GetInviteCodeBaseUrls ¶
func (*Config) GetIosUpdateUrl ¶
func (*Config) GetLatestAppVersion ¶
func (*Config) GetMinCompatibleAppVersion ¶
func (*Config) GetOnboardingImages ¶
func (*Config) GetSupportEmail ¶
func (*Config) GetSupportedCountries ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type ConfigServiceClient ¶ added in v0.4.4
type ConfigServiceClient interface { GetAppConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetAppConfigResponse, error) GetLanguagesSupported(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetLanguagesResponse, error) }
ConfigServiceClient is the client API for ConfigService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConfigServiceClient ¶ added in v0.4.4
func NewConfigServiceClient(cc grpc.ClientConnInterface) ConfigServiceClient
type ConfigServiceServer ¶ added in v0.4.4
type ConfigServiceServer interface { GetAppConfig(context.Context, *empty.Empty) (*GetAppConfigResponse, error) GetLanguagesSupported(context.Context, *empty.Empty) (*GetLanguagesResponse, error) }
ConfigServiceServer is the server API for ConfigService service.
type GetAppConfigResponse ¶
type GetAppConfigResponse struct { Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*GetAppConfigResponse) Descriptor
deprecated
func (*GetAppConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAppConfigResponse.ProtoReflect.Descriptor instead.
func (*GetAppConfigResponse) GetConfig ¶
func (x *GetAppConfigResponse) GetConfig() *Config
func (*GetAppConfigResponse) ProtoMessage ¶
func (*GetAppConfigResponse) ProtoMessage()
func (*GetAppConfigResponse) ProtoReflect ¶
func (x *GetAppConfigResponse) ProtoReflect() protoreflect.Message
func (*GetAppConfigResponse) Reset ¶
func (x *GetAppConfigResponse) Reset()
func (*GetAppConfigResponse) String ¶
func (x *GetAppConfigResponse) String() string
type GetLanguagesResponse ¶
type GetLanguagesResponse struct { Languages []*Language `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"` // contains filtered or unexported fields }
func (*GetLanguagesResponse) Descriptor
deprecated
func (*GetLanguagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLanguagesResponse.ProtoReflect.Descriptor instead.
func (*GetLanguagesResponse) GetLanguages ¶
func (x *GetLanguagesResponse) GetLanguages() []*Language
func (*GetLanguagesResponse) ProtoMessage ¶
func (*GetLanguagesResponse) ProtoMessage()
func (*GetLanguagesResponse) ProtoReflect ¶
func (x *GetLanguagesResponse) ProtoReflect() protoreflect.Message
func (*GetLanguagesResponse) Reset ¶
func (x *GetLanguagesResponse) Reset()
func (*GetLanguagesResponse) String ¶
func (x *GetLanguagesResponse) String() string
type Language ¶
type Language struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` EnglishName string `protobuf:"bytes,2,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"` NativeName string `protobuf:"bytes,3,opt,name=native_name,json=nativeName,proto3" json:"native_name,omitempty"` // contains filtered or unexported fields }
func (*Language) Descriptor
deprecated
func (*Language) GetEnglishName ¶
func (*Language) GetNativeName ¶
func (*Language) ProtoMessage ¶
func (*Language) ProtoMessage()
func (*Language) ProtoReflect ¶
func (x *Language) ProtoReflect() protoreflect.Message
type UnimplementedConfigServiceServer ¶ added in v0.4.4
type UnimplementedConfigServiceServer struct { }
UnimplementedConfigServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedConfigServiceServer) GetAppConfig ¶ added in v0.4.4
func (*UnimplementedConfigServiceServer) GetAppConfig(context.Context, *empty.Empty) (*GetAppConfigResponse, error)
func (*UnimplementedConfigServiceServer) GetLanguagesSupported ¶ added in v0.4.4
func (*UnimplementedConfigServiceServer) GetLanguagesSupported(context.Context, *empty.Empty) (*GetLanguagesResponse, error)
Click to show internal directories.
Click to hide internal directories.