Documentation ¶
Index ¶
- func Run(opts ...Option) error
- type Option
- func WithAuthentication(ac server.AuthChecker) Option
- func WithBrowserUI(enabled bool) Option
- func WithContext(ctx context.Context) Option
- func WithGRPC(ln net.Listener) Option
- func WithHTTP(ln net.Listener) Option
- func WithImpl(impl pb.WaypointServer) Option
- func WithLogger(log hclog.Logger) Option
- func WithTelemetry(enabled bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures Run
func WithAuthentication ¶
func WithAuthentication(ac server.AuthChecker) Option
WithAuthentication configures the server to require authentication.
func WithBrowserUI ¶
WithBrowserUI configures the server to enable the browser UI.
func WithContext ¶
WithContext sets the context for the server. When this context is cancelled, the server will be shut down.
func WithGRPC ¶
WithGRPC sets the GRPC listener. This listener must be closed manually by the caller. Prior to closing the listener, it is recommended that you cancel the context set with WithContext and wait for Run to return.
func WithHTTP ¶
WithHTTP sets the HTTP listener. This listener must be closed manually by the caller. Prior to closing the listener, it is recommended that you cancel the context set with WithContext and wait for Run to return.
If this is called multiple times, multiple HTTP listeners are started.
func WithImpl ¶
func WithImpl(impl pb.WaypointServer) Option
WithImpl sets the service implementation to serve.
func WithTelemetry ¶ added in v0.6.0
WithTelemetry instructs the server to export OpenCensus traces for requests.
Directories ¶
Path | Synopsis |
---|---|
Package state manages the state that the singleprocess server has, providing operations to mutate that state safely as needed.
|
Package state manages the state that the singleprocess server has, providing operations to mutate that state safely as needed. |
Package component has component implementations for the various resulting types.
|
Package component has component implementations for the various resulting types. |
Package httpapi implements the shared endpoints that are implemented over the HTTP protocol rather than gRPC.
|
Package httpapi implements the shared endpoints that are implemented over the HTTP protocol rather than gRPC. |