transformers

package
Version: v0.0.0-...-cc3425c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL