utils

package
v0.0.0-...-5411da2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullableString

func NullableString(str string) *string

NullableString return a nullable string

Types

type Cursor

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

func (Cursor) Current

func (c Cursor) Current() string

Get current cursor

func (Cursor) LastUpdate

func (c Cursor) LastUpdate() time.Time

Last cache update

func (Cursor) Next

func (c Cursor) Next() string

Current next cursor

func (Cursor) Size

func (c Cursor) Size() int64

Current items count

func (Cursor) String

func (c Cursor) String() string

type Logger

type Logger struct{}

func (Logger) LogRequest

func (l Logger) LogRequest(req *http.Request)

func (Logger) LogResponse

func (l Logger) LogResponse(res *http.Response)

type Map

type Map map[string]interface{}

type Page

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

func NewPage

func NewPage(headers http.Header) Page

func (Page) Current

func (p Page) Current() int64

Get current page

func (Page) ItemsCount

func (p Page) ItemsCount() int64

func (Page) LastUpdate

func (p Page) LastUpdate() time.Time

func (Page) Size

func (p Page) Size() int64

Current page size

func (Page) String

func (p Page) String() string

func (Page) Total

func (p Page) Total() int64

Total page count

Jump to

Keyboard shortcuts

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