helpers

package
v0.0.0-...-e7c20e2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRedis

func DeleteRedis(key string) int

func ErrorCheck

func ErrorCheck(err error)

func GetRedis

func GetRedis(key string) (string, bool)

func SetRedis

func SetRedis(key string, data interface{}, expire time.Duration)

Types

type ErrorResponse

type ErrorResponse struct {
	Field string
	Tag   string
}

type Response

type Response struct {
	Status      int         `json:"status"`
	Message     string      `json:"message"`
	Totalrecord int         `json:"totalrecord"`
	Record      interface{} `json:"record"`
	Time        string      `json:"time"`
}

type ResponseCustom

type ResponseCustom struct {
	Status      int         `json:"status"`
	Message     string      `json:"message"`
	Permainan   interface{} `json:"permainan"`
	Totalrecord int         `json:"totalrecord"`
	Totalbayar  int         `json:"totalbayar"`
	Record      interface{} `json:"record"`
	Time        string      `json:"time"`
}

type ResponseSaveTransaksi

type ResponseSaveTransaksi struct {
	Status       int         `json:"status"`
	Message      string      `json:"message"`
	Messageerror interface{} `json:"messageerror"`
	Totalrecord  int         `json:"totalrecord"`
	Totalbayar   int         `json:"totalbayar"`
	Record       interface{} `json:"record"`
	Time         string      `json:"time"`
}

Jump to

Keyboard shortcuts

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