Documentation
¶
Index ¶
- Variables
- type APIServer
- func (*APIServer) Descriptor() ([]byte, []int)deprecated
- func (x *APIServer) GetCors() *APIServer_Cors
- func (x *APIServer) GetPort() int32
- func (x *APIServer) GetSession() *APIServer_Session
- func (x *APIServer) GetTrace() *GoogleCloud_Trace
- func (*APIServer) ProtoMessage()
- func (x *APIServer) ProtoReflect() protoreflect.Message
- func (x *APIServer) Reset()
- func (x *APIServer) String() string
- type APIServer_Cors
- func (*APIServer_Cors) Descriptor() ([]byte, []int)deprecated
- func (x *APIServer_Cors) GetAllowCredentials() bool
- func (x *APIServer_Cors) GetAllowedHeaders() []string
- func (x *APIServer_Cors) GetAllowedMethods() []string
- func (x *APIServer_Cors) GetAllowedOrigins() []string
- func (x *APIServer_Cors) GetExposeHeaders() []string
- func (x *APIServer_Cors) GetMaxAge() int64
- func (*APIServer_Cors) ProtoMessage()
- func (x *APIServer_Cors) ProtoReflect() protoreflect.Message
- func (x *APIServer_Cors) Reset()
- func (x *APIServer_Cors) String() string
- type APIServer_Session
- func (*APIServer_Session) Descriptor() ([]byte, []int)deprecated
- func (x *APIServer_Session) GetExpirationSeconds() int64
- func (x *APIServer_Session) GetSecretKey() string
- func (*APIServer_Session) ProtoMessage()
- func (x *APIServer_Session) ProtoReflect() protoreflect.Message
- func (x *APIServer_Session) Reset()
- func (x *APIServer_Session) String() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetApiServer() *APIServer
- func (x *Config) GetDebug() bool
- func (x *Config) GetGoogleCloud() *GoogleCloud
- func (x *Config) GetLogging() *Logging
- func (x *Config) GetPostgres() *Postgres
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type GoogleCloud
- func (*GoogleCloud) Descriptor() ([]byte, []int)deprecated
- func (x *GoogleCloud) GetProjectId() string
- func (x *GoogleCloud) GetTrace() *GoogleCloud_Trace
- func (*GoogleCloud) ProtoMessage()
- func (x *GoogleCloud) ProtoReflect() protoreflect.Message
- func (x *GoogleCloud) Reset()
- func (x *GoogleCloud) String() string
- type GoogleCloud_Trace
- func (*GoogleCloud_Trace) Descriptor() ([]byte, []int)deprecated
- func (x *GoogleCloud_Trace) GetEnabled() bool
- func (x *GoogleCloud_Trace) GetSamplingRate() float32
- func (*GoogleCloud_Trace) ProtoMessage()
- func (x *GoogleCloud_Trace) ProtoReflect() protoreflect.Message
- func (x *GoogleCloud_Trace) Reset()
- func (x *GoogleCloud_Trace) String() string
- type Logging
- func (*Logging) Descriptor() ([]byte, []int)deprecated
- func (x *Logging) GetOmitRequestBody() bool
- func (x *Logging) GetOmitResponseBody() bool
- func (x *Logging) GetSeverity() Logging_Severity
- func (*Logging) ProtoMessage()
- func (x *Logging) ProtoReflect() protoreflect.Message
- func (x *Logging) Reset()
- func (x *Logging) String() string
- type Logging_Severity
- func (Logging_Severity) Descriptor() protoreflect.EnumDescriptor
- func (x Logging_Severity) Enum() *Logging_Severity
- func (Logging_Severity) EnumDescriptor() ([]byte, []int)deprecated
- func (x Logging_Severity) Number() protoreflect.EnumNumber
- func (x Logging_Severity) String() string
- func (Logging_Severity) Type() protoreflect.EnumType
- type Postgres
- func (*Postgres) Descriptor() ([]byte, []int)deprecated
- func (x *Postgres) GetDatabase() string
- func (x *Postgres) GetHost() string
- func (x *Postgres) GetPassword() string
- func (x *Postgres) GetPort() int32
- func (x *Postgres) GetUser() string
- func (*Postgres) ProtoMessage()
- func (x *Postgres) ProtoReflect() protoreflect.Message
- func (x *Postgres) Reset()
- func (x *Postgres) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Logging_Severity_name = map[int32]string{ 0: "SEVERITY_UNSPECIFIED", 100: "SEVERITY_DEBUG", 200: "SEVERITY_INFO", 300: "SEVERITY_NOTICE", 400: "SEVERITY_WARNING", 500: "SEVERITY_ERROR", 600: "SEVERITY_CRITICAL", 700: "SEVERITY_ALERT", 800: "SEVERITY_EMERGENCY", } Logging_Severity_value = map[string]int32{ "SEVERITY_UNSPECIFIED": 0, "SEVERITY_DEBUG": 100, "SEVERITY_INFO": 200, "SEVERITY_NOTICE": 300, "SEVERITY_WARNING": 400, "SEVERITY_ERROR": 500, "SEVERITY_CRITICAL": 600, "SEVERITY_ALERT": 700, "SEVERITY_EMERGENCY": 800, } )
Enum value maps for Logging_Severity.
View Source
var File_config_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
Cors *APIServer_Cors `protobuf:"bytes,2,opt,name=cors,proto3" json:"cors,omitempty"`
Session *APIServer_Session `protobuf:"bytes,3,opt,name=session,proto3" json:"session,omitempty"`
Trace *GoogleCloud_Trace `protobuf:"bytes,4,opt,name=trace,proto3" json:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*APIServer) Descriptor
deprecated
func (*APIServer) GetCors ¶
func (x *APIServer) GetCors() *APIServer_Cors
func (*APIServer) GetSession ¶
func (x *APIServer) GetSession() *APIServer_Session
func (*APIServer) GetTrace ¶
func (x *APIServer) GetTrace() *GoogleCloud_Trace
func (*APIServer) ProtoMessage ¶
func (*APIServer) ProtoMessage()
func (*APIServer) ProtoReflect ¶
func (x *APIServer) ProtoReflect() protoreflect.Message
type APIServer_Cors ¶
type APIServer_Cors struct {
AllowedOrigins []string `protobuf:"bytes,1,rep,name=allowed_origins,json=allowedOrigins,proto3" json:"allowed_origins,omitempty"`
AllowedMethods []string `protobuf:"bytes,2,rep,name=allowed_methods,json=allowedMethods,proto3" json:"allowed_methods,omitempty"`
AllowedHeaders []string `protobuf:"bytes,3,rep,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"`
ExposeHeaders []string `protobuf:"bytes,4,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
MaxAge int64 `protobuf:"varint,5,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
AllowCredentials bool `protobuf:"varint,6,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
// contains filtered or unexported fields
}
func (*APIServer_Cors) Descriptor
deprecated
func (*APIServer_Cors) Descriptor() ([]byte, []int)
Deprecated: Use APIServer_Cors.ProtoReflect.Descriptor instead.
func (*APIServer_Cors) GetAllowCredentials ¶
func (x *APIServer_Cors) GetAllowCredentials() bool
func (*APIServer_Cors) GetAllowedHeaders ¶
func (x *APIServer_Cors) GetAllowedHeaders() []string
func (*APIServer_Cors) GetAllowedMethods ¶
func (x *APIServer_Cors) GetAllowedMethods() []string
func (*APIServer_Cors) GetAllowedOrigins ¶
func (x *APIServer_Cors) GetAllowedOrigins() []string
func (*APIServer_Cors) GetExposeHeaders ¶
func (x *APIServer_Cors) GetExposeHeaders() []string
func (*APIServer_Cors) GetMaxAge ¶
func (x *APIServer_Cors) GetMaxAge() int64
func (*APIServer_Cors) ProtoMessage ¶
func (*APIServer_Cors) ProtoMessage()
func (*APIServer_Cors) ProtoReflect ¶
func (x *APIServer_Cors) ProtoReflect() protoreflect.Message
func (*APIServer_Cors) Reset ¶
func (x *APIServer_Cors) Reset()
func (*APIServer_Cors) String ¶
func (x *APIServer_Cors) String() string
type APIServer_Session ¶
type APIServer_Session struct {
ExpirationSeconds int64 `protobuf:"varint,1,opt,name=expiration_seconds,json=expirationSeconds,proto3" json:"expiration_seconds,omitempty"`
// HMAC-SHA256 の秘密鍵 (32文字の文字列で指定する)
SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
// contains filtered or unexported fields
}
func (*APIServer_Session) Descriptor
deprecated
func (*APIServer_Session) Descriptor() ([]byte, []int)
Deprecated: Use APIServer_Session.ProtoReflect.Descriptor instead.
func (*APIServer_Session) GetExpirationSeconds ¶
func (x *APIServer_Session) GetExpirationSeconds() int64
func (*APIServer_Session) GetSecretKey ¶
func (x *APIServer_Session) GetSecretKey() string
func (*APIServer_Session) ProtoMessage ¶
func (*APIServer_Session) ProtoMessage()
func (*APIServer_Session) ProtoReflect ¶
func (x *APIServer_Session) ProtoReflect() protoreflect.Message
func (*APIServer_Session) Reset ¶
func (x *APIServer_Session) Reset()
func (*APIServer_Session) String ¶
func (x *APIServer_Session) String() string
type Config ¶
type Config struct {
Debug bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"`
GoogleCloud *GoogleCloud `protobuf:"bytes,2,opt,name=google_cloud,json=googleCloud,proto3" json:"google_cloud,omitempty"`
Logging *Logging `protobuf:"bytes,3,opt,name=logging,proto3" json:"logging,omitempty"`
Postgres *Postgres `protobuf:"bytes,4,opt,name=postgres,proto3" json:"postgres,omitempty"`
ApiServer *APIServer `protobuf:"bytes,5,opt,name=api_server,json=apiServer,proto3" json:"api_server,omitempty"`
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) GetApiServer ¶
func (*Config) GetGoogleCloud ¶
func (x *Config) GetGoogleCloud() *GoogleCloud
func (*Config) GetLogging ¶
func (*Config) GetPostgres ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type GoogleCloud ¶
type GoogleCloud struct {
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
Trace *GoogleCloud_Trace `protobuf:"bytes,2,opt,name=trace,proto3" json:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*GoogleCloud) Descriptor
deprecated
func (*GoogleCloud) Descriptor() ([]byte, []int)
Deprecated: Use GoogleCloud.ProtoReflect.Descriptor instead.
func (*GoogleCloud) GetProjectId ¶
func (x *GoogleCloud) GetProjectId() string
func (*GoogleCloud) GetTrace ¶
func (x *GoogleCloud) GetTrace() *GoogleCloud_Trace
func (*GoogleCloud) ProtoMessage ¶
func (*GoogleCloud) ProtoMessage()
func (*GoogleCloud) ProtoReflect ¶
func (x *GoogleCloud) ProtoReflect() protoreflect.Message
func (*GoogleCloud) Reset ¶
func (x *GoogleCloud) Reset()
func (*GoogleCloud) String ¶
func (x *GoogleCloud) String() string
type GoogleCloud_Trace ¶
type GoogleCloud_Trace struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
SamplingRate float32 `protobuf:"fixed32,2,opt,name=sampling_rate,json=samplingRate,proto3" json:"sampling_rate,omitempty"`
// contains filtered or unexported fields
}
func (*GoogleCloud_Trace) Descriptor
deprecated
func (*GoogleCloud_Trace) Descriptor() ([]byte, []int)
Deprecated: Use GoogleCloud_Trace.ProtoReflect.Descriptor instead.
func (*GoogleCloud_Trace) GetEnabled ¶
func (x *GoogleCloud_Trace) GetEnabled() bool
func (*GoogleCloud_Trace) GetSamplingRate ¶
func (x *GoogleCloud_Trace) GetSamplingRate() float32
func (*GoogleCloud_Trace) ProtoMessage ¶
func (*GoogleCloud_Trace) ProtoMessage()
func (*GoogleCloud_Trace) ProtoReflect ¶
func (x *GoogleCloud_Trace) ProtoReflect() protoreflect.Message
func (*GoogleCloud_Trace) Reset ¶
func (x *GoogleCloud_Trace) Reset()
func (*GoogleCloud_Trace) String ¶
func (x *GoogleCloud_Trace) String() string
type Logging ¶
type Logging struct {
Severity Logging_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=com.github.averak.gamebox.config.Logging_Severity" json:"severity,omitempty"`
OmitRequestBody bool `protobuf:"varint,2,opt,name=omit_request_body,json=omitRequestBody,proto3" json:"omit_request_body,omitempty"`
OmitResponseBody bool `protobuf:"varint,3,opt,name=omit_response_body,json=omitResponseBody,proto3" json:"omit_response_body,omitempty"`
// contains filtered or unexported fields
}
func (*Logging) Descriptor
deprecated
func (*Logging) GetOmitRequestBody ¶
func (*Logging) GetOmitResponseBody ¶
func (*Logging) GetSeverity ¶
func (x *Logging) GetSeverity() Logging_Severity
func (*Logging) ProtoMessage ¶
func (*Logging) ProtoMessage()
func (*Logging) ProtoReflect ¶
func (x *Logging) ProtoReflect() protoreflect.Message
type Logging_Severity ¶
type Logging_Severity int32
Cloud Logging に定義された LogSeverity に対応する。 https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity
const ( Logging_SEVERITY_UNSPECIFIED Logging_Severity = 0 Logging_SEVERITY_DEBUG Logging_Severity = 100 Logging_SEVERITY_INFO Logging_Severity = 200 Logging_SEVERITY_NOTICE Logging_Severity = 300 Logging_SEVERITY_WARNING Logging_Severity = 400 Logging_SEVERITY_ERROR Logging_Severity = 500 Logging_SEVERITY_CRITICAL Logging_Severity = 600 Logging_SEVERITY_ALERT Logging_Severity = 700 Logging_SEVERITY_EMERGENCY Logging_Severity = 800 )
func (Logging_Severity) Descriptor ¶
func (Logging_Severity) Descriptor() protoreflect.EnumDescriptor
func (Logging_Severity) Enum ¶
func (x Logging_Severity) Enum() *Logging_Severity
func (Logging_Severity) EnumDescriptor
deprecated
func (Logging_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use Logging_Severity.Descriptor instead.
func (Logging_Severity) Number ¶
func (x Logging_Severity) Number() protoreflect.EnumNumber
func (Logging_Severity) String ¶
func (x Logging_Severity) String() string
func (Logging_Severity) Type ¶
func (Logging_Severity) Type() protoreflect.EnumType
type Postgres ¶
type Postgres struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
Database string `protobuf:"bytes,5,opt,name=database,proto3" json:"database,omitempty"`
// contains filtered or unexported fields
}
func (*Postgres) Descriptor
deprecated
func (*Postgres) GetDatabase ¶
func (*Postgres) GetPassword ¶
func (*Postgres) ProtoMessage ¶
func (*Postgres) ProtoMessage()
func (*Postgres) ProtoReflect ¶
func (x *Postgres) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.