Documentation ¶
Index ¶
- func ExtractUserID(t *testing.T, cookies []*http.Cookie) string
- func GenerateIDs(t *testing.T, count int) []string
- func GetAPIEndpoint(t *testing.T) string
- func GetAPIKey(t *testing.T) string
- func GetCoreEndpoint(t *testing.T) string
- func GetDSN(t *testing.T) string
- func Public(t *testing.T, private *rsa.PrivateKey) string
- type APIKeyTransport
- type ArticleDB
- type ConnectClient
- func NewConnectClient(t *testing.T, client connect.HTTPClient, url string) *ConnectClient
- func NewConnectClientWithAPIKey(t *testing.T, key string, url string) *ConnectClient
- func NewConnectClientWithCookie(t *testing.T, cookie string, url string) *ConnectClient
- func NewPlainConnectClient(t *testing.T, url string) *ConnectClient
- type CookieTransport
- type CookiesTransport
- type CoreUser
- type OnlyIDTokenCookieTransport
- type OnlySessionTokenCookieTransport
- type OpenAPIClient
- type User
- type UserDB
- type XAPIKeyTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIEndpoint ¶
func GetCoreEndpoint ¶
Types ¶
type APIKeyTransport ¶
type APIKeyTransport struct { APIKey string Transport http.RoundTripper // contains filtered or unexported fields }
func NewAPIKeyTransport ¶
func NewAPIKeyTransport( t *testing.T, key string, ) *APIKeyTransport
type ConnectClient ¶
type ConnectClient struct { Article articlev1connect.ArticleServiceClient Health healthv1connect.HealthServiceClient Auth authv1connect.AuthServiceClient }
func NewConnectClient ¶
func NewConnectClient(t *testing.T, client connect.HTTPClient, url string) *ConnectClient
func NewConnectClientWithAPIKey ¶
func NewConnectClientWithAPIKey(t *testing.T, key string, url string) *ConnectClient
func NewConnectClientWithCookie ¶
func NewConnectClientWithCookie(t *testing.T, cookie string, url string) *ConnectClient
func NewPlainConnectClient ¶
func NewPlainConnectClient(t *testing.T, url string) *ConnectClient
type CookieTransport ¶
type CookieTransport struct { Cookie string Transport http.RoundTripper // contains filtered or unexported fields }
func NewCookieTransport ¶
func NewCookieTransport( t *testing.T, cookie string, ) *CookieTransport
type CookiesTransport ¶
func NewCookiesTransport ¶
func NewCookiesTransport( t *testing.T, cookies []*http.Cookie, ) *CookiesTransport
type CoreUser ¶
type CoreUser struct { EMail string Password string Cookie string Client *ConnectClient }
func (CoreUser) ChangePassword ¶
type OnlyIDTokenCookieTransport ¶
type OnlyIDTokenCookieTransport struct { T *testing.T Cookie *http.Cookie Transport http.RoundTripper }
func NewOnlyIDTokenCookieTransport ¶
func NewOnlyIDTokenCookieTransport( t *testing.T, cookies []*http.Cookie, ) *OnlyIDTokenCookieTransport
type OnlySessionTokenCookieTransport ¶
type OnlySessionTokenCookieTransport struct { T *testing.T Cookie *http.Cookie Transport http.RoundTripper }
func NewOnlySessionTokenCookieTransport ¶
func NewOnlySessionTokenCookieTransport( t *testing.T, cookies []*http.Cookie, ) *OnlySessionTokenCookieTransport
type OpenAPIClient ¶
func NewOpenAPIClient ¶
func NewOpenAPIClient(t *testing.T, url string) *OpenAPIClient
type User ¶
type User struct { T *testing.T EMail string Password string Cookies []*http.Cookie Client *OpenAPIClient Key *rsa.PrivateKey }
type UserDB ¶
func (*UserDB) BulkDelete ¶
type XAPIKeyTransport ¶
type XAPIKeyTransport struct { APIKey string Transport http.RoundTripper // contains filtered or unexported fields }
func NewXAPIKeyTransport ¶
func NewXAPIKeyTransport( t *testing.T, key string, ) *XAPIKeyTransport
Click to show internal directories.
Click to hide internal directories.