functions

package
v0.0.0-...-3e14ff0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountIdQueryParam      = "accountId"
	TransactionNumQueryParam = "numTransactions"
	StartDateParam           = "startDate"
	EndDateParam             = "endDate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryParams

type QueryParams struct {
	AccountID       *string
	NumTransactions *int32
	StartDate       *time.Time
	EndDate         *time.Time
}

QueryParams struct to hold the query parameters

func FetchQueryParams

func FetchQueryParams(queryParams url.Values) *QueryParams

FetchQueryParams extracts query parameters from the url.Values map

func (*QueryParams) String

func (q *QueryParams) String() string

Jump to

Keyboard shortcuts

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