Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestMain ¶
TestMain This magic function wraps all the other tests see https://golang.org/pkg/testing/ and the section on TestMain
Types ¶
type Agent ¶
type Agent struct {
AgentCode string `db:"agent_code"`
WorkingArea string `db:"working_area"`
AgentName string `db:"agent_name"`
Commission string `db:"commission"`
PhoneNo string `db:"phone_no"`
Country string `db:"country"`
}
Agent is a sample DTO for DB records.
type AgentStore ¶
AgentStore An example entity store for agents
func (*AgentStore) GetAgents ¶
func (a *AgentStore) GetAgents() ([]Agent, error)
GetAgents returns agents from store
Click to show internal directories.
Click to hide internal directories.