Documentation ¶
Index ¶
- func ExtractUserID(t *testing.T, cookies []*http.Cookie) string
- func GetAPIKey(t *testing.T) string
- func GetAppAPIEndpoint(t *testing.T) string
- func GetAppCoreEndpoint(t *testing.T) string
- func GetDSN(t *testing.T) string
- func GetRedisURL(t *testing.T) string
- func NewIDs(t *testing.T, count int) []uuid.UUID
- func Public(t *testing.T, private *rsa.PrivateKey) string
- func ToIntPointer(t *testing.T, value int) *int
- func ToStringPointer(t *testing.T, value string) *string
- type APIKeyTransport
- type ConnectClient
- type CookieTransport
- type CookiesTransport
- type Database
- func (db *Database) BulkDeleteArticles(ids []uuid.UUID)
- func (db *Database) BulkInsertArticles(ids []uuid.UUID)
- func (db *Database) Close()
- func (db *Database) DeleteArticleByTitle(title string)
- func (db *Database) DeleteUser(uid uuid.UUID)
- func (db *Database) DeleteUserArticle(uid uuid.UUID, aid uuid.UUID)
- func (db *Database) InsertUser(uid uuid.UUID)
- func (db *Database) SelectArticleByTitle(title string) *ent.Article
- type OnlyIDTokenCookieTransport
- type OnlySessionTokenCookieTransport
- type OpenAPIClient
- type Redis
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppAPIEndpoint ¶
func GetAppCoreEndpoint ¶
func GetRedisURL ¶
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 User userv1connect.UserServiceClient Health healthv1connect.HealthServiceClient }
func NewConnectClient ¶
func NewConnectClient(t *testing.T, client connect.HTTPClient, 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 Database ¶
func (*Database) BulkDeleteArticles ¶
func (*Database) BulkInsertArticles ¶
func (*Database) DeleteArticleByTitle ¶
func (*Database) DeleteUser ¶
func (*Database) DeleteUserArticle ¶
func (*Database) InsertUser ¶
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
func NewOpenAPIClientWithAPIKey ¶
func NewOpenAPIClientWithAPIKey(t *testing.T, url string, key string) *OpenAPIClient
type Redis ¶
func (*Redis) DeleteInvitationCode ¶
Click to show internal directories.
Click to hide internal directories.