service

package
v0.0.0-...-cbc6a02 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheService

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

func NewCacheService

func NewCacheService() *CacheService

func (*CacheService) GetI

func (svc *CacheService) GetI(key string, i interface{}) error

func (*CacheService) Set

func (svc *CacheService) Set(key string, val interface{}) error

func (*CacheService) SetWithTTL

func (svc *CacheService) SetWithTTL(key string, val interface{}, ttl time.Duration) error

type FileService

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

func NewFileService

func NewFileService() *FileService

func (*FileService) Download

func (svc *FileService) Download(filename string) (string, error)

func (*FileService) Save

func (svc *FileService) Save(fh *multipart.FileHeader) error

Jump to

Keyboard shortcuts

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