Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserIDs = []string{"ea960e6c-f613-4bed-8852-ab012603915b", "8b21d0aa-39a4-4c09-86d2-d29dff8d261f"} Roles = []string{"admin", "db_viewer"} RoleUIDs = [][]int{{1}, {2, 3, 4}} ManagementRoles = []string{"admin", "db_viewer", "cluster_viewer", "admin"} RoleNames = []string{"Admin", "Member", "Super Member", "Full User"} )
Functions ¶
func GetUniqueTime ¶
func NewTestClient ¶
func NewTestClient(response *http.Response, err error) *client.RedisClient
Helper function to create a test client with custom transport.
Types ¶
type MockRoundTripper ¶
type MockRoundTripper struct {
Response *http.Response
Err error
// contains filtered or unexported fields
}
func (*MockRoundTripper) SetRoundTrip ¶
type TestRoundTripper ¶
type TestRoundTripper struct {
// contains filtered or unexported fields
}
Custom RoundTripper for testing.
Click to show internal directories.
Click to hide internal directories.