Documentation
¶
Index ¶
- Variables
- type RuleService
- func (s *RuleService) Create(r *model.Rule) error
- func (s *RuleService) FindAll(ctx context.Context) ([]model.Rule, error)
- func (s *RuleService) FindByAddress(addr types.Address) ([]model.Rule, error)
- func (s *RuleService) FindByPrimaryKey(uid uint, event types.EventType, addr types.Address) (*model.Rule, error)
- func (s *RuleService) Update(rule *model.Rule) error
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
This section is empty.
Types ¶
type RuleService ¶
type RuleService struct {
// contains filtered or unexported fields
}
func NewRuleService ¶
func NewRuleService(db *gorm.DB) *RuleService
func (*RuleService) FindByAddress ¶
func (*RuleService) FindByPrimaryKey ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(db *gorm.DB) *UserService
func (*UserService) FindByDiscordID ¶
func (s *UserService) FindByDiscordID(id string) (*model.User, error)
func (*UserService) FindOrCreateByDiscordUser ¶
Click to show internal directories.
Click to hide internal directories.