Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
GRPCServer configures the dependencies associated with the Flipt GRPC Service. It provides an entrypoint to start serving the gRPC stack (Run()). Along with a teardown function (Shutdown(ctx)).
func NewGRPCServer ¶
func NewGRPCServer( ctx context.Context, logger *zap.Logger, cfg *config.Config, info info.Flipt, forceMigrate bool, ) (*GRPCServer, error)
NewGRPCServer constructs the core Flipt gRPC service including its dependencies (e.g. tracing, metrics, storage, migrations, caching and cleanup). It returns an instance of *GRPCServer which callers can Run().
func (*GRPCServer) Run ¶
func (s *GRPCServer) Run() error
Run begins serving gRPC requests. This methods blocks until Shutdown is called.
type HTTPServer ¶
HTTPServer is a wrapper around the construction and registration of Flipt's HTTP server.
func NewHTTPServer ¶
func NewHTTPServer( ctx context.Context, logger *zap.Logger, cfg *config.Config, conn *grpc.ClientConn, info info.Flipt, ) (*HTTPServer, error)
NewHTTPServer constructs and configures the HTTPServer instance. The HTTPServer depends upon a running gRPC server instance which is why it explicitly requires and established gRPC connection as an argument.
func (*HTTPServer) Run ¶
func (h *HTTPServer) Run() error
Run starts listening and serving the Flipt HTTP API. It blocks until the server is shutdown.