durationmodel

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsersData

func GetUsersData() *durationdata.DurationData

GetUsersData - Returns the instance of DurationData relative to user duration data

Types

type UserRemoteData

type UserRemoteData struct{}

UserRemoteData - Define a struct that implements DDInterface

func (UserRemoteData) EncodeQueryString

func (u UserRemoteData) EncodeQueryString(req *http.Request)

EncodeQueryString - Define the to-implement func to add extra data to request header

func (UserRemoteData) GetBody

func (u UserRemoteData) GetBody() io.Reader

GetBody - Returns the body of request

func (UserRemoteData) GetMethod

func (u UserRemoteData) GetMethod() string

GetMethod - Returns the method of request ex "POST"

func (UserRemoteData) GetURL

func (u UserRemoteData) GetURL() string

GetURL - Returns the endpoint of the resource

func (UserRemoteData) HandlerData

func (u UserRemoteData) HandlerData() (interface{}, error)

HandlerData - Exec the method handler to retrive the remote data

Jump to

Keyboard shortcuts

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