Documentation ¶
Index ¶
- func Initialize(ctx context.Context)
- type AlertTypeResolver
- func (t *AlertTypeResolver) CreatedAt(ctx context.Context, obj *model.AlertTypes) (*library.Datetime, error)
- func (t *AlertTypeResolver) ID(ctx context.Context, obj *model.AlertTypes) (string, error)
- func (t *AlertTypeResolver) ModifiedAt(ctx context.Context, obj *model.AlertTypes) (*library.Datetime, error)
- func (t *AlertTypeResolver) SubUsers(ctx context.Context, obj *model.AlertTypes) ([]*model.Users, error)
- type MutationResolver
- type QueryResolver
- type Type
- type UserResolver
- func (t *UserResolver) CreatedAt(ctx context.Context, obj *model.Users) (*library.Datetime, error)
- func (t *UserResolver) ID(ctx context.Context, obj *model.Users) (string, error)
- func (t *UserResolver) ModifiedAt(ctx context.Context, obj *model.Users) (*library.Datetime, error)
- func (t *UserResolver) SubAlerts(ctx context.Context, obj *model.Users) ([]*model.AlertTypes, error)
- func (t *UserResolver) TelegramID(ctx context.Context, obj *model.Users) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type AlertTypeResolver ¶
type AlertTypeResolver struct{}
func (*AlertTypeResolver) CreatedAt ¶
func (t *AlertTypeResolver) CreatedAt(ctx context.Context, obj *model.AlertTypes, ) (*library.Datetime, error)
func (*AlertTypeResolver) ID ¶
func (t *AlertTypeResolver) ID(ctx context.Context, obj *model.AlertTypes, ) (string, error)
func (*AlertTypeResolver) ModifiedAt ¶
func (t *AlertTypeResolver) ModifiedAt(ctx context.Context, obj *model.AlertTypes, ) (*library.Datetime, error)
func (*AlertTypeResolver) SubUsers ¶
func (t *AlertTypeResolver) SubUsers(ctx context.Context, obj *model.AlertTypes, ) ([]*model.Users, error)
type MutationResolver ¶
type MutationResolver struct{}
func (*MutationResolver) TelegramMonitorAlert ¶
func (r *MutationResolver) TelegramMonitorAlert(ctx context.Context, typeArg string, token string, msg string) (*model.AlertTypes, error)
type QueryResolver ¶
type QueryResolver struct{}
func (*QueryResolver) TelegramAlertTypes ¶
func (r *QueryResolver) TelegramAlertTypes(ctx context.Context, page *global.Pagination, name string) ([]*model.AlertTypes, error)
func (*QueryResolver) TelegramMonitorUsers ¶
func (r *QueryResolver) TelegramMonitorUsers(ctx context.Context, page *global.Pagination, name string) ([]*model.Users, error)
type Type ¶
type Type struct { TelegramAlertTypeResolver *AlertTypeResolver TelegramUserResolver *UserResolver }
var Instance *Type
type UserResolver ¶
type UserResolver struct{}
func (*UserResolver) ID ¶
-------------------------- telegram monitor resolver --------------------------
func (*UserResolver) ModifiedAt ¶
func (*UserResolver) SubAlerts ¶
func (t *UserResolver) SubAlerts(ctx context.Context, obj *model.Users, ) ([]*model.AlertTypes, error)
func (*UserResolver) TelegramID ¶
Click to show internal directories.
Click to hide internal directories.