Documentation ¶ Index ¶ type Group func (g Group) HasMember(user User) bool type User func (u User) Info(api slack.Client) *slack.User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Group ¶ type Group struct { gorm.Model ID uint Name string `gorm:"index:,unique"` Members []User `gorm:"many2many:user_groups;"` CreatedAt time.Time UpdatedAt time.Time } func (Group) HasMember ¶ func (g Group) HasMember(user User) bool type User ¶ type User struct { gorm.Model Uuid string `gorm:"index:,unique"` Groups []Group `gorm:"many2many:user_groups;"` } func (User) Info ¶ func (u User) Info(api slack.Client) *slack.User Source Files ¶ View all Source files group.go user.go Click to show internal directories. Click to hide internal directories.