requests

package
v0.45.7 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestByID

func GetRequestByID(requestID string, cache db.Cacher) (*models.Request, error)

GetRequestByID is a static function to export to other services.

func NewRequestRepository

func NewRequestRepository(cache db.Cacher) models.RequestRepositoryInterface

Types

type RequestRepository

type RequestRepository struct {
	// contains filtered or unexported fields
}

The implementation of pkg/models.RequestRepositoryInterface.

func (*RequestRepository) Delete

func (r *RequestRepository) Delete(requestID string) error

func (*RequestRepository) GetByID

func (r *RequestRepository) GetByID(requestID string) (*models.Request, error)

func (*RequestRepository) Save

func (r *RequestRepository) Save(request *models.Request) error

Jump to

Keyboard shortcuts

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