Documentation ¶
Overview ¶
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func AddressIPv4() string
- func NewServer(auditLogger audit.AuditLogger, options ...ConfigOpt) (*http.Server, error)
- type Config
- type ConfigOpt
- func WithBurstRate(burstRate int) ConfigOpt
- func WithHandler(handler http.Handler) ConfigOpt
- func WithListenAddress(listenAddr string) ConfigOpt
- func WithReadTimeout(readTimeout time.Duration) ConfigOpt
- func WithSteadyStateRate(steadyStateRate float64) ConfigOpt
- func WithWriteTimeout(writeTimeout time.Duration) ConfigOpt
Constants ¶
View Source
const ( // TMDS IP and port IPv4 = "127.0.0.1" Port = 51679 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Configuration for TMDS
type ConfigOpt ¶
type ConfigOpt func(*Config)
Function type for updating TMDS config
func WithListenAddress ¶
Set TMDS listen address
func WithReadTimeout ¶
Set TMDS read timeout
func WithSteadyStateRate ¶
Set TMDS steady request rate limit
func WithWriteTimeout ¶
Set TMDS write timeout
Directories ¶
Path | Synopsis |
---|---|
handlers
|
|
response
This package defines some common types used by all task metadata functions
|
This package defines some common types used by all task metadata functions |
taskprotection/v1/handlers
Package handlers is a generated GoMock package.
|
Package handlers is a generated GoMock package. |
v4/state/mocks
Package mock_state is a generated GoMock package.
|
Package mock_state is a generated GoMock package. |
utils
|
|
Click to show internal directories.
Click to hide internal directories.