telegram

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context)

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 (*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) CreatedAt

func (t *UserResolver) CreatedAt(ctx context.Context,
	obj *model.Users,
) (*library.Datetime, error)

func (*UserResolver) ID

func (t *UserResolver) ID(ctx context.Context, obj *model.Users) (string, error)

-------------------------- telegram monitor resolver --------------------------

func (*UserResolver) ModifiedAt

func (t *UserResolver) ModifiedAt(ctx context.Context,
	obj *model.Users,
) (*library.Datetime, error)

func (*UserResolver) SubAlerts

func (t *UserResolver) SubAlerts(ctx context.Context,
	obj *model.Users,
) ([]*model.AlertTypes, error)

func (*UserResolver) TelegramID

func (t *UserResolver) TelegramID(ctx context.Context,
	obj *model.Users,
) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL