Documentation
¶
Index ¶
- func NewMiddleware(api huma.API) func(ctx huma.Context, next func(huma.Context))
- func Start(config *Configuration) error
- type AlarmHolder
- type AlarmsHolder
- type AnimalAddInput
- type AnimalHolder
- type AnimalsHolder
- type AnswerAddInput
- type AnswerDeleteInput
- type AnswerHolder
- type AnswersHolder
- type AuthenticationInput
- type AuthenticationRequest
- type AuthenticationResult
- type AuthorizationInput
- type AuthorizationResult
- type BorneSensorDeploymentAddInput
- type BorneSensorDeploymentHolder
- type BorneSensorDeploymentsHolder
- type BorneSensorReadingAddInput
- type BorneSensorReadingsHolder
- type Configuration
- type ConveyanceHolder
- type ConveyancesHolder
- type DetectionAddInput
- type DetectionHolder
- type DetectionsHolder
- type ExperimentDeleteInput
- type ExperimentEndInput
- type ExperimentHolder
- type ExperimentNewInput
- type ExperimentUpdateInput
- type ExperimentsHolder
- type Input
- type InteractionAddInput
- type InteractionHolder
- type InteractionQueryInput
- type InteractionTypeHolder
- type InteractionTypeUpdateInput
- type InteractionTypesHolder
- type InteractionsHolder
- type LivingLabAddInput
- type LivingLabHolder
- type LivingLabsHolder
- type Mailer
- type MessageAddInput
- type MessageDeleteInput
- type MessageHolder
- type MessagesHolder
- type Operations
- type ProfileHolder
- type ProfileNewHolder
- type ProfileUpdateHolder
- type ProfilesHolder
- type QuestionAddInput
- type QuestionDeleteInput
- type QuestionHolder
- type QuestionnaireAddInput
- type QuestionnaireDeleteInput
- type QuestionnaireHolder
- type QuestionnaireUpdateInput
- type QuestionnairesHolder
- type QuestionsHolder
- type ResponseAddInput
- type ResponseHolder
- type ResponsesHolder
- type RoleForUserUpdateInput
- type RolesHolder
- type ServeMux
- type SpecieSHolder
- type SpeciesForZoneUpdateInput
- type SpeciesHolder
- type SpeciesUpdateInput
- type TrackingReadingAddInput
- type TrackingReadingHolder
- type TrackingReadingsHolder
- type UserHolder
- type UserNewHolder
- type UsersHolder
- type VicinityHolder
- type ZoneAddInput
- type ZoneDeactivateInput
- type ZoneHolder
- type ZonesHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func Start ¶
func Start(config *Configuration) error
Types ¶
type AlarmHolder ¶
type AlarmsHolder ¶
type AnimalAddInput ¶
type AnimalAddInput struct {
Body *models.AnimalRecord `json:"animal"`
}
type AnimalHolder ¶
type AnimalsHolder ¶
type AnswerAddInput ¶
type AnswerAddInput struct {
Input
Body *models.AnswerRecord `json:"answer"`
}
type AnswerDeleteInput ¶
type AnswerHolder ¶
type AnswersHolder ¶
type AuthenticationInput ¶
type AuthenticationInput struct {
Body struct {
DisplayNameApp string `json:"displayNameApp" doc:"The display name of the requesting app, will be used in the email message." example:"MyApp"`
Email string `json:"email" doc:"The email address that the authentication code should be send to." format:"email"`
}
}
type AuthenticationRequest ¶
type AuthenticationRequest struct {
// contains filtered or unexported fields
}
type AuthenticationResult ¶
type AuthenticationResult struct {
Body string `json:"message"`
}
type AuthorizationInput ¶
type AuthorizationResult ¶
type AuthorizationResult struct {
Body *models.Credential `json:"credential"`
}
type BorneSensorDeploymentAddInput ¶
type BorneSensorDeploymentAddInput struct {
Body *models.BorneSensorDeploymentRecord `json:"borneSensorDeployment"`
}
type BorneSensorDeploymentHolder ¶
type BorneSensorDeploymentHolder struct {
Body *models.BorneSensorDeployment `json:"borneSensorDeployment"`
}
type BorneSensorDeploymentsHolder ¶
type BorneSensorDeploymentsHolder struct {
Body []models.BorneSensorDeployment `json:"borneSensorDeployments"`
}
type BorneSensorReadingAddInput ¶
type BorneSensorReadingAddInput struct {
Input
Body *models.BorneSensorReadingRecord `json:"borneSensorReading"`
}
type BorneSensorReadingsHolder ¶
type BorneSensorReadingsHolder struct {
Body []models.BorneSensorReading `json:"borneSensorReadings"`
}
type Configuration ¶
type Configuration struct {
Version string
Host string
Port int
RelationalDatabaseHost string
RelationalDatabasePort int
RelationalDatabaseName string
RelationalDatabaseUser string
RelationalDatabasePass string
RelationalDatabaseSSLmode string
TimeseriesDatabaseURL string
TimeseriesDatabaseOrganization string
TimeseriesDatabaseToken string
CacheSessionDurationMinutes int
CacheAuthRequestDurationMinutes int
EmailFrom string
EmailHost string
EmailUser string
EmailPassword string
AdminEmailAddress string
}
type ConveyanceHolder ¶
type ConveyanceHolder struct {
Body *models.Conveyance `json:"conveyance"`
}
type ConveyancesHolder ¶
type ConveyancesHolder struct {
Body []models.Conveyance `json:"conveyances"`
}
type DetectionAddInput ¶
type DetectionAddInput struct {
Body models.DetectionRecord `json:"detection"`
}
type DetectionHolder ¶
type DetectionsHolder ¶
type ExperimentDeleteInput ¶
type ExperimentEndInput ¶
type ExperimentHolder ¶
type ExperimentHolder struct {
Body *models.Experiment `json:"experiment"`
}
type ExperimentNewInput ¶
type ExperimentNewInput struct {
Input
Body *models.ExperimentRecord `json:"experiment"`
}
type ExperimentUpdateInput ¶
type ExperimentUpdateInput struct {
Input
ID string `path:"id" format:"uuid" doc:"The ID of the experiment to be updated."`
Body *models.ExperimentRecord `json:"experiment"`
}
type ExperimentsHolder ¶
type ExperimentsHolder struct {
Body []models.Experiment `json:"experiments"`
}
type InteractionAddInput ¶
type InteractionAddInput struct {
Input
Body *models.InteractionRecord `json:"interaction"`
}
type InteractionHolder ¶
type InteractionHolder struct {
Body *models.Interaction `json:"interaction"`
}
type InteractionQueryInput ¶
type InteractionQueryInput struct {
Latitude float64 `` /* 151-byte string literal not displayed */
Longitude float64 `` /* 155-byte string literal not displayed */
Radius int `` /* 127-byte string literal not displayed */
Before time.Time `query:"moment_before" doc:"The moment in time before which the interaction happened."`
After time.Time `query:"moment_after" doc:"The moment in time after which the interaction happened."`
}
type InteractionTypeHolder ¶
type InteractionTypeHolder struct {
Body *models.InteractionType `json:"interactionType"`
}
type InteractionTypeUpdateInput ¶
type InteractionTypeUpdateInput struct {
ID int `path:"id" doc:"The ID of the interaction type to be updated."`
Body *models.InteractionType `json:"interactionType"`
}
type InteractionTypesHolder ¶
type InteractionTypesHolder struct {
Body []models.InteractionType `json:"interactionTypes"`
}
type InteractionsHolder ¶
type InteractionsHolder struct {
Body []models.Interaction `json:"interactions"`
}
type LivingLabAddInput ¶
type LivingLabHolder ¶
type LivingLabsHolder ¶
type MessageAddInput ¶
type MessageAddInput struct {
Input
Body *models.MessageRecord `json:"message"`
}
type MessageDeleteInput ¶
type MessageHolder ¶
type MessagesHolder ¶
type Operations ¶
type Operations struct {
Endpoint string
}
type ProfileHolder ¶
type ProfileNewHolder ¶
type ProfileNewHolder struct {
Input
Body *models.ProfileRecord `json:"profile"`
}
type ProfileUpdateHolder ¶
type ProfileUpdateHolder struct {
Input
Body *models.ProfileRecord `json:"profile"`
}
type ProfilesHolder ¶
type QuestionAddInput ¶
type QuestionAddInput struct {
Input
Body *models.QuestionRecord `json:"question"`
}
type QuestionDeleteInput ¶
type QuestionHolder ¶
type QuestionnaireAddInput ¶
type QuestionnaireAddInput struct {
Input
Body *models.QuestionnaireRecord `json:"questionnaire"`
}
type QuestionnaireHolder ¶
type QuestionnaireHolder struct {
Body *models.Questionnaire `json:"questionnaire"`
}
type QuestionnaireUpdateInput ¶
type QuestionnaireUpdateInput struct {
Input
ID string `path:"id" format:"uuid" doc:"The ID of the questionnaire to be updated."`
Body *models.QuestionnaireRecord `json:"questionnaire"`
}
type QuestionnairesHolder ¶
type QuestionnairesHolder struct {
Body []models.Questionnaire `json:"questionnaires"`
}
type QuestionsHolder ¶
type ResponseAddInput ¶
type ResponseAddInput struct {
Input
Body *models.ResponseRecord `json:"response"`
}
type ResponseHolder ¶
type ResponsesHolder ¶
type RoleForUserUpdateInput ¶
type RolesHolder ¶
type ServeMux ¶
func NewServeMux ¶
func NewServeMux() *ServeMux
type SpecieSHolder ¶
type SpeciesHolder ¶
type SpeciesUpdateInput ¶
type TrackingReadingAddInput ¶
type TrackingReadingAddInput struct {
Input
Body *models.TrackingReadingRecord `json:"trackingReading"`
}
type TrackingReadingHolder ¶
type TrackingReadingHolder struct {
Body *models.TrackingReading `json:"trackingReading"`
}
type TrackingReadingsHolder ¶
type TrackingReadingsHolder struct {
Body []models.TrackingReading `json:"trackingReadings"`
}
type UserHolder ¶
type UserNewHolder ¶
type UserNewHolder struct {
Input
Body *models.UserCreatedByAdmin `json:"user"`
}
type UsersHolder ¶
type VicinityHolder ¶
type ZoneAddInput ¶
type ZoneAddInput struct {
Input
Body *models.ZoneRecord `json:"zone"`
}
type ZoneDeactivateInput ¶
type ZoneHolder ¶
type ZonesHolder ¶
Source Files
¶
- api.go
- authenticationRequest.go
- configuration.go
- input.go
- mailer.go
- operations.go
- opsAlarm.go
- opsAnimal.go
- opsAnswer.go
- opsAuth.go
- opsBorneSensorDeployment.go
- opsBorneSensorReading.go
- opsConveyance.go
- opsDetection.go
- opsExperiment.go
- opsInteraction.go
- opsInteractionType.go
- opsLivingLab.go
- opsMessage.go
- opsProfile.go
- opsQuestion.go
- opsQuestionnaire.go
- opsResponse.go
- opsRole.go
- opsSpecies.go
- opsTrackingReading.go
- opsUser.go
- opsVicinity.go
- opsZone.go
- serveMux.go
- utils.go
Click to show internal directories.
Click to hide internal directories.