transformers

package
v0.0.0-...-80e094b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package transformers contains data transformation functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCodeRequestResourceDaoToResponse

func AuthCodeRequestResourceDaoToResponse(model *models.AuthCodeRequestResourceDao) *models.AuthCodeRequestResourceResponse

AuthCodeRequestResourceDaoToResponse will transform an auth code resource dao into an http response entity

func AuthCodeResourceRequestToDB

func AuthCodeResourceRequestToDB(req *models.AuthCodeRequest) *models.AuthCodeRequestResourceDao

AuthCodeResourceRequestToDB will take the input request from the REST call and transform it to a dao ready for insertion into the database

func OfficerListResponse

func OfficerListResponse(oracleAPIResp *oracle.GetOfficersResponse) *models.OfficerListResponse

OfficerListResponse converts an Officer List from the Oracle API into the required format to be returned

func OfficerResponse

func OfficerResponse(oracleAPIResp *oracle.Officer) *models.Officer

OfficerResponse converts an Officer from the Oracle API into the required format to be returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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