services

package
v0.0.0-...-e75eb70 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToJSON string = "JSON"
	ToHTML string = "HTML"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PoT

type PoT struct {
	Type     string
	Code     int
	HTML     string
	Response *gin.H
}

type Services

type Services struct {
	F *M.File
	U *M.Utils
	T *M.Token
}

func New

func New() *Services

func (*Services) Curl

func (srv *Services) Curl(reqURL string) (res []byte, err error)

func (*Services) Paginator

func (srv *Services) Paginator(page int, pageNums int, pageSize ...int) (paginator map[string]interface{})

func (*Services) PaginatorParams

func (srv *Services) PaginatorParams(strPage string, strSize string) (page int, size int)

func (*Services) Rd

func (srv *Services) Rd(rPoT *M.RdPoT) (r *redis.Client, err error)

Jump to

Keyboard shortcuts

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