Documentation ¶
Index ¶
- func GenerateClientContext(secretKey string, serverURL string) context.Context
- func GenerateClientCtxRemoteServer(t *testing.T) context.Context
- func GetGrowthBookMockServerHandler(t *testing.T, secretKey string, projects []models.Project) http.HandlerFunc
- func GrowthBookMockServer(t *testing.T, handler http.HandlerFunc) *httptest.Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateClientContext ¶
GenerateClientContext generates a new context.Context and sets the GrowthBook API domain and secret key to access GrowthBook API
func GrowthBookMockServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.