reference

package
Version: v0.0.0-...-99b79bc Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgeServer

type AgeServer struct {
	businesslogic.IAgeRepository
}

func (AgeServer) CreateAgeHandler

func (server AgeServer) CreateAgeHandler(w http.ResponseWriter, r *http.Request)

func (AgeServer) DeleteAgeHandler

func (server AgeServer) DeleteAgeHandler(w http.ResponseWriter, r *http.Request)

func (AgeServer) SearchAgeHandler

func (server AgeServer) SearchAgeHandler(w http.ResponseWriter, r *http.Request)

SearchAgeHandler handles request

GET /api/reference/age

Accepted parameters:

{
	"id": 1,
	"division": 3
}

Sample results returned:

[
	{ "id": 3, "name": "Adult", "division": 4, "enforced": true, "minimum": 19, "maximum": 99 },
	{ "id": 4, "name": "Senior I", "division": 4, "enforced": true, "minimum": 36, "maximum": 45 },
]

func (AgeServer) UpdateAgeHandler

func (server AgeServer) UpdateAgeHandler(w http.ResponseWriter, r *http.Request)

type CityServer

type CityServer struct {
	businesslogic.ICityRepository
}

func (CityServer) CreateCityHandler

func (server CityServer) CreateCityHandler(w http.ResponseWriter, r *http.Request)

POST /api/reference/city

func (CityServer) DeleteCityHandler

func (server CityServer) DeleteCityHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/city

func (CityServer) SearchCityHandler

func (server CityServer) SearchCityHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/city

func (CityServer) UpdateCityHandler

func (server CityServer) UpdateCityHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/city

type CountryServer

type CountryServer struct {
	businesslogic.ICountryRepository
}

CountryServer serves requests that perform

func (CountryServer) CreateCountryHandler

func (server CountryServer) CreateCountryHandler(w http.ResponseWriter, r *http.Request)

CreateCountryHandler handles request

POST /api/reference/country

Accepted JSON parameters:

{
	"name": "A New Country",
	"abbreviation": "ANC"
}

Authentication is required.

Sample returned response:

{
	"status": 401,
	"message": "invalid authorization token",
	"data": null
}

func (CountryServer) DeleteCountryHandler

func (server CountryServer) DeleteCountryHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/country

func (CountryServer) SearchCountryHandler

func (server CountryServer) SearchCountryHandler(w http.ResponseWriter, r *http.Request)

SearchCountryHandler handles request

GET /api/reference/country

Accepted search parameters:

{
	"id": 1,
	"name": "A New Country",
	"abbreviation": "ANC"
}

Sample results returned

[
	{"id": 1, name: "United State", abbreviation: "USA"},
	{"id": 2, name: "Canada", abbreviation: "CAN"}
]

func (CountryServer) UpdateCountryHandler

func (server CountryServer) UpdateCountryHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/country

type DanceServer

type DanceServer struct {
	businesslogic.IDanceRepository
}

func (DanceServer) CreateDanceHandler

func (server DanceServer) CreateDanceHandler(w http.ResponseWriter, r *http.Request)

func (DanceServer) DeleteDanceHandler

func (server DanceServer) DeleteDanceHandler(w http.ResponseWriter, r *http.Request)

func (DanceServer) SearchDanceHandler

func (server DanceServer) SearchDanceHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/dance

func (DanceServer) UpdateDanceHandler

func (server DanceServer) UpdateDanceHandler(w http.ResponseWriter, r *http.Request)

type DivisionServer

type DivisionServer struct {
	businesslogic.IDivisionRepository
}

func (DivisionServer) CreateDivisionHandler

func (server DivisionServer) CreateDivisionHandler(w http.ResponseWriter, r *http.Request)

func (DivisionServer) DeleteDivisionHandler

func (server DivisionServer) DeleteDivisionHandler(w http.ResponseWriter, r *http.Request)

func (DivisionServer) SearchDivisionHandler

func (server DivisionServer) SearchDivisionHandler(w http.ResponseWriter, r *http.Request)

func (DivisionServer) UpdateDivisionHandler

func (server DivisionServer) UpdateDivisionHandler(w http.ResponseWriter, r *http.Request)

type FederationServer

type FederationServer struct {
	businesslogic.IFederationRepository
}

func (FederationServer) CreateFederationHandler

func (server FederationServer) CreateFederationHandler(w http.ResponseWriter, r *http.Request)

POST /api/reference/federation

func (FederationServer) DeleteFederationHandler

func (server FederationServer) DeleteFederationHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/federation

func (FederationServer) SearchFederationHandler

func (server FederationServer) SearchFederationHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/federation

func (FederationServer) UpdateFederationHandler

func (server FederationServer) UpdateFederationHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/federation

type ProficiencyServer

type ProficiencyServer struct {
	businesslogic.IProficiencyRepository
}

func (ProficiencyServer) CreateProficiencyHandler

func (server ProficiencyServer) CreateProficiencyHandler(w http.ResponseWriter, r *http.Request)

POST /api/reference/proficiency

func (ProficiencyServer) DeleteProficiencyHandler

func (server ProficiencyServer) DeleteProficiencyHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/proficiency

func (ProficiencyServer) SearchProficiencyHandler

func (server ProficiencyServer) SearchProficiencyHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/proficiency

func (ProficiencyServer) UpdateProficiencyHandler

func (server ProficiencyServer) UpdateProficiencyHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/proficiency

type SchoolServer

type SchoolServer struct {
	businesslogic.ISchoolRepository
}

func (SchoolServer) CreateSchoolHandler

func (server SchoolServer) CreateSchoolHandler(w http.ResponseWriter, r *http.Request)

POST /api/reference/school

func (SchoolServer) DeleteSchoolHandler

func (server SchoolServer) DeleteSchoolHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/school

func (SchoolServer) SearchSchoolHandler

func (server SchoolServer) SearchSchoolHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/school

func (SchoolServer) UpdateSchoolHandler

func (server SchoolServer) UpdateSchoolHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/school

type StateServer

type StateServer struct {
	businesslogic.IStateRepository
}

func (StateServer) CreateStateHandler

func (server StateServer) CreateStateHandler(w http.ResponseWriter, r *http.Request)

POST /api/reference/state

func (StateServer) DeleteStateHandler

func (server StateServer) DeleteStateHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/state

func (StateServer) SearchStateHandler

func (server StateServer) SearchStateHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/state

func (StateServer) UpdateStateHandler

func (server StateServer) UpdateStateHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/state

type StudioServer

type StudioServer struct {
	businesslogic.IStudioRepository
}

func (StudioServer) CreateStudioHandler

func (server StudioServer) CreateStudioHandler(w http.ResponseWriter, r *http.Request)

POST /api/reference/studio

func (StudioServer) DeleteStudioHandler

func (server StudioServer) DeleteStudioHandler(w http.ResponseWriter, r *http.Request)

DELETE /api/reference/studio

func (StudioServer) SearchStudioHandler

func (server StudioServer) SearchStudioHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/studio

func (StudioServer) UpdateStudioHandler

func (server StudioServer) UpdateStudioHandler(w http.ResponseWriter, r *http.Request)

PUT /api/reference/studio

type StyleServer

type StyleServer struct {
	businesslogic.IStyleRepository
}

func (StyleServer) CreateStyleHandler

func (server StyleServer) CreateStyleHandler(w http.ResponseWriter, r *http.Request)

func (StyleServer) DeleteStyleHandler

func (server StyleServer) DeleteStyleHandler(w http.ResponseWriter, r *http.Request)

func (StyleServer) SearchStyleHandler

func (server StyleServer) SearchStyleHandler(w http.ResponseWriter, r *http.Request)

GET /api/reference/style

func (StyleServer) UpdateStyleHandler

func (server StyleServer) UpdateStyleHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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