Documentation ¶
Index ¶
- Variables
- func Init(s *fiber.App)
- func PlaygroundHandler(c *fiber.Ctx) error
- type Course
- type Filter
- type LoginInput
- type LoginPayload
- type Query
- func (_ *Query) AddCourse(c context.Context, args struct{ ... }) (*Course, error)
- func (_ *Query) AddUser(c context.Context, args struct{ ... }) (*User, error)
- func (_ *Query) CountCourses(c context.Context) (int32, error)
- func (_ *Query) CountFiles(c context.Context) (int32, error)
- func (_ *Query) CountUsers(c context.Context) (int32, error)
- func (_ *Query) Course(c context.Context, args struct{ ... }) (*Course, error)
- func (_ *Query) Courses(c context.Context) (courses []*Course, err error)
- func (_ *Query) Login(c context.Context, args *LoginInput) (*LoginPayload, error)
- func (_ *Query) UpdatePassword(c context.Context, args *UpdatePasswordInput) (string, error)
- func (_ *Query) User(c context.Context, args struct{ ... }) (*User, error)
- func (_ *Query) Users(c context.Context, args struct{ ... }) (users []*User, err error)
- type Request
- type UpdatePasswordInput
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAuthenticated = errors.New("You are not logged in") ErrPasswordToWeak = errors.New("Password does not meet requirements") )
View Source
var Handler = &handler{Schema: graphql.MustParseSchema(schema, &Query{})}
Functions ¶
func PlaygroundHandler ¶
func PlaygroundHandler(c *fiber.Ctx) error
Types ¶
type LoginInput ¶
type LoginPayload ¶
type LoginPayload struct {
// contains filtered or unexported fields
}
func (*LoginPayload) Token ¶
func (l *LoginPayload) Token() string
func (*LoginPayload) User ¶
func (l *LoginPayload) User() *User
type Query ¶
type Query struct{}
func (*Query) Login ¶
func (_ *Query) Login(c context.Context, args *LoginInput) (*LoginPayload, error)
func (*Query) UpdatePassword ¶
type UpdatePasswordInput ¶
Click to show internal directories.
Click to hide internal directories.