Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrAuthRequired = errors.New("auth required") )
Functions ¶
func AuthRequired ¶
func CheckAuthRequired ¶
CheckAuthRequired wraps err as AuthRequired if the error message contains "must log in". This consolidates the GQL auth-check pattern used across both api/api.go and api/graphql/client.go.
Types ¶
type AuthRequiredError ¶
type AuthRequiredError struct {
// contains filtered or unexported fields
}
func (*AuthRequiredError) Error ¶
func (e *AuthRequiredError) Error() string
func (*AuthRequiredError) Is ¶
func (e *AuthRequiredError) Is(target error) bool
func (*AuthRequiredError) Unwrap ¶
func (e *AuthRequiredError) Unwrap() error
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
func (*NotFoundError) Is ¶
func (e *NotFoundError) Is(target error) bool
func (*NotFoundError) Unwrap ¶
func (e *NotFoundError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.