Documentation ¶
Index ¶
- func CreateArticleComment(article *models.Article, group *models.Group, user *models.User) (*models.ArticleComment, error)
- func CreateArticleLike(article *models.Article, group *models.Group, user *models.User) (*models.ArticleLike, error)
- func CreateGroupArticle(article *models.Article, group *models.Group, user *models.User) (*models.GroupArticle, error)
- func CreateGroupMember(user *models.User, group *models.Group) (*models.GroupMember, error)
- func CreateTestArticle(user *models.User) (*models.Article, error)
- func CreateTestArticleContent(article *models.Article) (*models.ArticleContent, error)
- func CreateTestGroup(user *models.User) (*models.Group, error)
- func CreateTestUser() (user *models.User, privateKey *ecdsa.PrivateKey, err error)
- func InitTestEnv(configPath string)
- func LoadTestAccount(idx int) (*keystore.KeyStore, *accounts.Account, error)
- func RandString(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArticleComment ¶
func CreateArticleLike ¶
func CreateGroupArticle ¶
func CreateGroupMember ¶
func CreateTestArticleContent ¶
func CreateTestArticleContent(article *models.Article) (*models.ArticleContent, error)
func CreateTestUser ¶
func CreateTestUser() (user *models.User, privateKey *ecdsa.PrivateKey, err error)
func InitTestEnv ¶
func InitTestEnv(configPath string)
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.