Documentation ¶
Index ¶
- Constants
- Variables
- func ApiKeyClaimError(key, msg string) *handlerutil.HttpError
- func ApiKeyError(msg string) *handlerutil.HttpError
- func ApiKeyExpError(msg string) *handlerutil.HttpError
- func ApiKeyJtiError(msg string) *handlerutil.HttpError
- func ApiKeySignError(msg string) *handlerutil.HttpError
- func AuthError(msg string) *handlerutil.HttpError
- func DraftError(msg string) *handlerutil.HttpError
- func InvoiceError(msg string) *handlerutil.HttpError
- func NewPublicInvoicesOptions(params url.Values, maxLimit int) (*db.PublicInvoicesOptions, error)
- func NewUserInvoicesOptions(userId int, params url.Values, maxLimit int) (*db.UserInvoicesOptions, error)
- func SubstituteError(msg string) *handlerutil.HttpError
- func UpvsError(msg string) *handlerutil.HttpError
- func UserError(msg string) *handlerutil.HttpError
- type App
- type MissingToken
- type PagedInvoices
- type PatchDraftRequest
- type PatchUserRequest
- type Token
Constants ¶
View Source
const ( BearerToken = "BearerToken" ServiceAccountToken = "ServiceAccountToken" )
Variables ¶
View Source
var AuthInvalidTypeError = AuthError("type.invalid")
Functions ¶
func ApiKeyClaimError ¶
func ApiKeyClaimError(key, msg string) *handlerutil.HttpError
func ApiKeyError ¶
func ApiKeyError(msg string) *handlerutil.HttpError
func ApiKeyExpError ¶
func ApiKeyExpError(msg string) *handlerutil.HttpError
func ApiKeyJtiError ¶
func ApiKeyJtiError(msg string) *handlerutil.HttpError
func ApiKeySignError ¶
func ApiKeySignError(msg string) *handlerutil.HttpError
func AuthError ¶
func AuthError(msg string) *handlerutil.HttpError
func DraftError ¶
func DraftError(msg string) *handlerutil.HttpError
func InvoiceError ¶
func InvoiceError(msg string) *handlerutil.HttpError
func NewUserInvoicesOptions ¶
func SubstituteError ¶
func SubstituteError(msg string) *handlerutil.HttpError
func UpvsError ¶
func UpvsError(msg string) *handlerutil.HttpError
func UserError ¶
func UserError(msg string) *handlerutil.HttpError
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) CloseResources ¶
func (a *App) CloseResources()
type MissingToken ¶
type MissingToken struct{}
func (MissingToken) Error ¶
func (e MissingToken) Error() string
type PagedInvoices ¶
type PagedInvoices struct { Invoices []entity.Invoice `json:"invoices"` NextId *string `json:"nextId"` }
func NewPagedInvoices ¶
func NewPagedInvoices(invoices []entity.Invoice, limit int) *PagedInvoices
type PatchDraftRequest ¶
type PatchDraftRequest struct { Name *string `json:"name"` Data json.RawMessage `json:"data,omitempty"` }
type PatchUserRequest ¶
type PatchUserRequest struct {
ServiceAccountPublicKey *string `json:"serviceAccountPublicKey"`
}
func (*PatchUserRequest) Validate ¶
func (u *PatchUserRequest) Validate() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.