dev_server

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

dev server

The dev server is a go server that ldcli can run. It provides a local-only version of all the APIs that support LaunchDarkly SDKs. You can use it to serve flags to local and ephemeral environments. It copies flag values for a project from a source environment and serves those. There are also APIs that let you override those values so that you can enable a feature just in your dev environment, e.g.

The build of the dev server is incorporated into the ldcli build itself. The UI provided by the dev server has a manual build.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	RunServer(ctx context.Context, serverParams ServerParams)
}

type LDClient

type LDClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cliVersion string) LDClient

func (LDClient) RunServer

func (c LDClient) RunServer(ctx context.Context, serverParams ServerParams)

type ServerParams

type ServerParams struct {
	AccessToken            string
	BaseURI                string
	DevStreamURI           string
	Port                   string
	InitialProjectSettings model.InitialProjectSettings
}

Directories

Path Synopsis
internal
Package internal is a generated GoMock package.
Package internal is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
Package store provides database storage for package model
Package store provides database storage for package model
Package model provides dev projects and flag override data models for the api handler to use.
Package model provides dev projects and flag override data models for the api handler to use.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package sdk provides API handlers for [the endpoints provided by ld-relay](https://github.com/launchdarkly/ld-relay/blob/v8/docs/endpoints.md).
Package sdk provides API handlers for [the endpoints provided by ld-relay](https://github.com/launchdarkly/ld-relay/blob/v8/docs/endpoints.md).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL