Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB = int64(1024) MB = int64(1 << 20) DefaultMaxResponseBodySize = 32 * MB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { ConfigServiceAddress structure.AddressConfiguration `valid:"required~Required" json:"configServiceAddress"` ModuleName string `valid:"required~Required" json:"moduleName"` InstanceUuid string `valid:"required~Required" json:"instanceUuid"` HttpOuterAddress structure.AddressConfiguration `valid:"required~Required" json:"httpOuterAddress"` HttpInnerAddress structure.AddressConfiguration `valid:"required~Required" json:"httpInnerAddress"` }
type RemoteConfig ¶
type RemoteConfig struct { EnableOriginalProtoErrors bool `` /* 179-byte string literal not displayed */ ProxyGrpcErrorDetails bool `` /* 209-byte string literal not displayed */ MultipartDataTransferBufferSizeBytes int64 `schema:"Размер буфера для передачи бинарных файлов,по умолчанию 4 KB"` MaxRequestBodySizeBytes int64 `schema:"Максимальный размер тела запроса,в байтайх, по умолчанию: 512 MB"` SyncInvokeMethodTimeoutMs int64 `` /* 141-byte string literal not displayed */ StreamInvokeMethodTimeoutMs int64 `` /* 165-byte string literal not displayed */ Metrics structure.MetricConfiguration `schema:"Настройка метрик"` Journal rx.Config `schema:"Настройка логирования"` JournalingMethodsPatterns []string `` /* 393-byte string literal not displayed */ }
func (RemoteConfig) GetMaxRequestBodySize ¶
func (cfg RemoteConfig) GetMaxRequestBodySize() int64
func (RemoteConfig) GetStreamInvokeTimeout ¶
func (cfg RemoteConfig) GetStreamInvokeTimeout() time.Duration
func (RemoteConfig) GetSyncInvokeTimeout ¶
func (cfg RemoteConfig) GetSyncInvokeTimeout() time.Duration
func (RemoteConfig) GetTransferFileBufferSize ¶
func (cfg RemoteConfig) GetTransferFileBufferSize() int64
Click to show internal directories.
Click to hide internal directories.