session

package
v0.0.0-...-c6c9c2c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(e *echo.Echo, service Service)

Types

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

func NewRepository

func NewRepository(db *sqlx.DB) Repository

type Service

type Service interface {
	InitiateSession(userId, tppId, tid string) (map[string]interface{}, error)
	FindByInternalAccessToken(accessToken string) (*Session, error)
}

func NewService

func NewService(r Repository) Service

type Session

type Session struct {
	Id                  int
	UserId              string `db:"user_id"`
	Tid                 string `db:"tid"`
	TppId               string `db:"tpp_id"`
	InternalAccessToken string `db:"internal_access_token"`
	ReferenceId         string `db:"reference_id"`
	AspspId             string `db:"aspsp_id"`
	CreateDateTime      string `db:"create_date_time"`
	UpdateDateTime      string `db:"update_date_time"`
}

Jump to

Keyboard shortcuts

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