service

package
v0.0.0-...-02ebfc9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsService

type AwsService interface {
	UploadFile(upload graphql.Upload, prefix string) (string, error)
	DeleteFile(key string) (bool, error)
	GetURLPrefix() string
}

AwsService interface

func NewAwsService

func NewAwsService() AwsService

NewAwsService function

type DialogflowService

type DialogflowService interface {
	SendMessage(sender, msg string) (string, error)
}

DialogflowService interface

func NewDialogflowService

func NewDialogflowService() DialogflowService

NewDialogflowService function

type JWTService

type JWTService interface {
	GenerateToken(name string, admin bool) string
	GenerateResetPasswordToken(name, hash string) string
	ValidateToken(tokenString string) (*jwt.Token, error)
	GetClaimsFromToken(tokenString string) (map[string]interface{}, error)
}

JWTService interface

func NewJWTService

func NewJWTService() JWTService

NewJWTService function

type MailerService

type MailerService interface {
	SendMail(recipient, message string) error
}

MailerService interface

func NewMailerService

func NewMailerService() MailerService

NewMailerService function

type Order

type Order struct {
	ID  string
	URL string
}

Order struct

type PayPalService

type PayPalService interface {
	CreateOrder(amount, description string) (Order, error)
	GetOrderStatus(orderID string) (string, error)
	CompleteOrder(orderID string) (string, error)
}

PayPalService interface

func NewPayPalService

func NewPayPalService() PayPalService

NewPayPalService function

Jump to

Keyboard shortcuts

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