config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Deprecated: Use APIServer.ProtoReflect.Descriptor instead.

func (*APIServer) GetCors

func (x *APIServer) GetCors() *APIServer_Cors

func (*APIServer) GetPort

func (x *APIServer) GetPort() int32

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

func (*APIServer) Reset

func (x *APIServer) Reset()

func (*APIServer) String

func (x *APIServer) String() string

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetApiServer

func (x *Config) GetApiServer() *APIServer

func (*Config) GetDebug

func (x *Config) GetDebug() bool

func (*Config) GetGoogleCloud

func (x *Config) GetGoogleCloud() *GoogleCloud

func (*Config) GetLogging

func (x *Config) GetLogging() *Logging

func (*Config) GetPostgres

func (x *Config) GetPostgres() *Postgres

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

Deprecated: Use Logging.ProtoReflect.Descriptor instead.

func (*Logging) GetOmitRequestBody

func (x *Logging) GetOmitRequestBody() bool

func (*Logging) GetOmitResponseBody

func (x *Logging) GetOmitResponseBody() bool

func (*Logging) GetSeverity

func (x *Logging) GetSeverity() Logging_Severity

func (*Logging) ProtoMessage

func (*Logging) ProtoMessage()

func (*Logging) ProtoReflect

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

func (*Logging) Reset

func (x *Logging) Reset()

func (*Logging) String

func (x *Logging) String() string

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) Enum

func (Logging_Severity) EnumDescriptor deprecated

func (Logging_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use Logging_Severity.Descriptor instead.

func (Logging_Severity) Number

func (Logging_Severity) String

func (x Logging_Severity) String() string

func (Logging_Severity) Type

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

Deprecated: Use Postgres.ProtoReflect.Descriptor instead.

func (*Postgres) GetDatabase

func (x *Postgres) GetDatabase() string

func (*Postgres) GetHost

func (x *Postgres) GetHost() string

func (*Postgres) GetPassword

func (x *Postgres) GetPassword() string

func (*Postgres) GetPort

func (x *Postgres) GetPort() int32

func (*Postgres) GetUser

func (x *Postgres) GetUser() string

func (*Postgres) ProtoMessage

func (*Postgres) ProtoMessage()

func (*Postgres) ProtoReflect

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

func (*Postgres) Reset

func (x *Postgres) Reset()

func (*Postgres) String

func (x *Postgres) String() string

Jump to

Keyboard shortcuts

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