Documentation ¶
Index ¶
- func GetHTTPClient(opts ...Option) *http.Client
- func InitServices(ctx context.Context, services map[string]config.ServicesConfig) (map[string]global.Service, error)
- func NewRequest(ctx context.Context, method, url string, body io.Reader) (*http.Request, error)
- type Config
- type Option
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPClient ¶
GetHTTPClient returns an http client with open census tracing support. TODO(labkode): harden it. https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
func InitServices ¶ added in v1.25.0
Types ¶
type Config ¶ added in v1.25.0
type Config func(*Server)
func WithCertAndKeyFiles ¶ added in v1.25.0
func WithLogger ¶ added in v1.25.0
func WithMiddlewares ¶ added in v1.25.0
func WithMiddlewares(middlewares []global.Middleware) Config
type Option ¶ added in v0.0.2
type Option func(o *Options)
Option defines a single option function.
func DisableKeepAlive ¶ added in v0.0.2
DisableKeepAlive provides a function to set the disablee keep alive option.
type Options ¶ added in v0.0.2
type Options struct { Context context.Context Timeout time.Duration Insecure bool DisableKeepAlive bool }
Options defines the available options for this package.
Directories ¶
Path | Synopsis |
---|---|
Package datatx provides a library to abstract the complexity of using various data transfer protocols.
|
Package datatx provides a library to abstract the complexity of using various data transfer protocols. |
utils/download
Package download provides a library to handle file download requests.
|
Package download provides a library to handle file download requests. |
Click to show internal directories.
Click to hide internal directories.