examples

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestMain

func TestMain(m *testing.M)

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

type AgentStore struct {
	DBX *sqlx.DB
}

AgentStore An example entity store for agents

func (*AgentStore) GetAgents

func (a *AgentStore) GetAgents() ([]Agent, error)

GetAgents returns agents from store

Jump to

Keyboard shortcuts

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