Documentation ¶
Index ¶
- type Server
- type ServerOption
- func OptionBlobHandler(handler http.Handler) ServerOption
- func OptionManifestHandler(handler http.Handler) ServerOption
- func OptionMetricsCollector(collector *metrics.Collector) ServerOption
- func OptionTagHandler(handler http.Handler) ServerOption
- func OptionUndefinedHandler(handler http.Handler) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is titan's OCI endpoint.
func NewServer ¶
func NewServer(options ...ServerOption) (*Server, error)
NewServer returns a fully initialized Server.
type ServerOption ¶
type ServerOption func(*Server)
ServerOption applies a parameter to a Server.
func OptionBlobHandler ¶
func OptionBlobHandler(handler http.Handler) ServerOption
OptionBlobHandler sets the http.Handler to use for the unknown endpoint.
func OptionManifestHandler ¶
func OptionManifestHandler(handler http.Handler) ServerOption
OptionManifestHandler sets the http.Handler to use for the unknown endpoint.
func OptionMetricsCollector ¶
func OptionMetricsCollector(collector *metrics.Collector) ServerOption
OptionMetricsCollector sets the http.Handler to use for the metrics endpoint.
func OptionTagHandler ¶
func OptionTagHandler(handler http.Handler) ServerOption
OptionTagHandler sets the http.Handler to use for the unknown endpoint.
func OptionUndefinedHandler ¶
func OptionUndefinedHandler(handler http.Handler) ServerOption
OptionUndefinedHandler sets the http.Handler to use for the unknown endpoint.
Directories ¶
Path | Synopsis |
---|---|
internal/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
internal
|
|
mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
internal/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
internal/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.