Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTLSMiddleware ¶ added in v0.0.21
IsTLSMiddleware is a middleware that checks if the request is TLS. This is a convenience wrapper around IsTLS.
Types ¶
type Service ¶
type Service[H repository.Handler] interface { // Start starts the service's HTTP server. Start(http.RoundTripper, *mtls.CAPEM, *gossip.BeskarMeta) error // Context returns the service's context. Context() context.Context // Config returns the service's configuration. Config() Config // RepositoryManager returns the service's repository manager. // For plugin's without a repository manager, this method should return nil. RepositoryManager() *repository.Manager[H] }
Click to show internal directories.
Click to hide internal directories.