Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Verbose = true
Verbose flag to switch verbose
Functions ¶
Types ¶
type DevelTester ¶
type DevelTester struct { }
DevelTester for the setup of ginkgo test
func (DevelTester) Config ¶
func (h DevelTester) Config() *configs.ParameterConfig
Config set up the config for testing from envt
func (DevelTester) EmptyDBTst ¶
func (h DevelTester) EmptyDBTst(storage *gorm.DB)
EmptyDBTst free the test db
type Helper ¶
type Helper struct { }
Helper utility
func (Helper) FormatSliceToIntMap ¶
FormatSliceToIntMap convert slice of int to map
func (Helper) RemoveIntDuplicates ¶
RemoveIntDuplicates de-duplicate int list
func (Helper) RemoveStrDuplicates ¶
RemoveStrDuplicates de-duplicate string list
type PagingParams ¶
type PagingParams struct { Page int `json:"page"` Limit int `json:"limit"` Total int `json:"total,omitempty"` }
PagingParams paging details from req-parameters
func NewPagingParams ¶
func NewPagingParams(r *http.Request) *PagingParams
NewPagingParams parse paging
type Seeder ¶
type Seeder struct { }
Seeder generator of dummy data
func (Seeder) CreateFloors ¶
CreateFloors generate random floor list
func (Seeder) CreateWithEmptyName ¶
CreateWithEmptyName geneate dummy building-data with empty name
func (Seeder) CreateWithName ¶
CreateWithName geneate dummy building-data and with name
Click to show internal directories.
Click to hide internal directories.