gateway

package
v0.0.0-...-ccb4e46 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirebaseDataAccess

type FirebaseDataAccess interface {
	CreateCustomToken(context.Context, string) (string, error)
}

FirebaseDataAccess type

type LineDataAccess

type LineDataAccess interface {
	VerifyToken(context.Context, string) (*VerifyTokenResponse, error)
	GetProfile(context.Context, string) (*UserProfileResponse, error)
	PushFlexMessage(string, string, []byte) error
}

LineDataAccess type

type PaymentDataAccess

type PaymentDataAccess interface {
	GetByDate(time.Time) ([]*entity.Payment, error)
	Insert(payment *entity.Payment) error
}

PaymentDataAccess type

type UserDataAccess

type UserDataAccess interface {
	GetAll() ([]*entity.User, error)
}

UserDataAccess type

type UserProfileResponse

type UserProfileResponse struct {
	UserID        string `json:"userId"`
	DisplayName   string `json:"displayName"`
	PictureURL    string `json:"pictureUrl"`
	StatusMessage string `json:"statusMessage"`
}

UserProfileResponse type

type VerifyTokenResponse

type VerifyTokenResponse struct {
	Scope     string `json:"scope"`
	ClientID  string `json:"client_id"`
	ExpiresIn int    `json:"expores_in"`
}

VerifyTokenResponse type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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