configpb

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 CodeOfConduct added in v0.7.0

type CodeOfConduct struct {
	Headline    string `protobuf:"bytes,1,opt,name=headline,proto3" json:"headline,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	IconUrl     string `protobuf:"bytes,3,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeOfConduct) Descriptor deprecated added in v0.7.0

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

Deprecated: Use CodeOfConduct.ProtoReflect.Descriptor instead.

func (*CodeOfConduct) GetDescription added in v0.7.0

func (x *CodeOfConduct) GetDescription() string

func (*CodeOfConduct) GetHeadline added in v0.7.0

func (x *CodeOfConduct) GetHeadline() string

func (*CodeOfConduct) GetIconUrl added in v0.7.0

func (x *CodeOfConduct) GetIconUrl() string

func (*CodeOfConduct) ProtoMessage added in v0.7.0

func (*CodeOfConduct) ProtoMessage()

func (*CodeOfConduct) ProtoReflect added in v0.7.0

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

func (*CodeOfConduct) Reset added in v0.7.0

func (x *CodeOfConduct) Reset()

func (*CodeOfConduct) String added in v0.7.0

func (x *CodeOfConduct) String() string

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"`
	LatestAppUpdated        string   `protobuf:"bytes,12,opt,name=latest_app_updated,json=latestAppUpdated,proto3" json:"latest_app_updated,omitempty"`
	TourSwipeGuide          []string `protobuf:"bytes,13,rep,name=tour_swipe_guide,json=tourSwipeGuide,proto3" json:"tour_swipe_guide,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAndroidUpdateUrl

func (x *Config) GetAndroidUpdateUrl() string

func (*Config) GetApiBaseUrl

func (x *Config) GetApiBaseUrl() string

func (*Config) GetAvatarPushBaseUrl

func (x *Config) GetAvatarPushBaseUrl() string

func (*Config) GetInviteCodeBaseUrl

func (x *Config) GetInviteCodeBaseUrl() string

func (*Config) GetInviteCodeBaseUrls

func (x *Config) GetInviteCodeBaseUrls() []string

func (*Config) GetIosUpdateUrl

func (x *Config) GetIosUpdateUrl() string

func (*Config) GetLatestAppUpdated added in v0.8.8

func (x *Config) GetLatestAppUpdated() string

func (*Config) GetLatestAppVersion

func (x *Config) GetLatestAppVersion() string

func (*Config) GetMinCompatibleAppVersion

func (x *Config) GetMinCompatibleAppVersion() string

func (*Config) GetOnboardingImages

func (x *Config) GetOnboardingImages() []string

func (*Config) GetSupportEmail

func (x *Config) GetSupportEmail() string

func (*Config) GetSupportedCountries

func (x *Config) GetSupportedCountries() []string

func (*Config) GetTourSwipeGuide added in v0.9.2

func (x *Config) GetTourSwipeGuide() []string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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)
	GetCodeOfConduct(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetCodeOfConductResponse, 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)
	GetCodeOfConduct(context.Context, *empty.Empty) (*GetCodeOfConductResponse, 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 GetCodeOfConductResponse added in v0.7.0

type GetCodeOfConductResponse struct {
	Codes []*CodeOfConduct `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCodeOfConductResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use GetCodeOfConductResponse.ProtoReflect.Descriptor instead.

func (*GetCodeOfConductResponse) GetCodes added in v0.7.0

func (x *GetCodeOfConductResponse) GetCodes() []*CodeOfConduct

func (*GetCodeOfConductResponse) ProtoMessage added in v0.7.0

func (*GetCodeOfConductResponse) ProtoMessage()

func (*GetCodeOfConductResponse) ProtoReflect added in v0.7.0

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

func (*GetCodeOfConductResponse) Reset added in v0.7.0

func (x *GetCodeOfConductResponse) Reset()

func (*GetCodeOfConductResponse) String added in v0.7.0

func (x *GetCodeOfConductResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Language.ProtoReflect.Descriptor instead.

func (*Language) GetCode

func (x *Language) GetCode() string

func (*Language) GetEnglishName

func (x *Language) GetEnglishName() string

func (*Language) GetNativeName

func (x *Language) GetNativeName() string

func (*Language) ProtoMessage

func (*Language) ProtoMessage()

func (*Language) ProtoReflect

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

func (*Language) Reset

func (x *Language) Reset()

func (*Language) String

func (x *Language) String() string

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) GetCodeOfConduct added in v0.7.0

func (*UnimplementedConfigServiceServer) GetLanguagesSupported added in v0.4.4

Jump to

Keyboard shortcuts

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