api

package
v0.0.0-...-836e728 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package api provide support to create /api group

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.Engine)

ApplyRoutes applies the /api group and v1 routes to given gin Engine

Types

This section is empty.

Directories

Path Synopsis
middleware
auth/tokenauth
Package tokenauthmiddleware defines middleware to verify TOKEN configured in env `AUTH_TOKEN`
Package tokenauthmiddleware defines middleware to verify TOKEN configured in env `AUTH_TOKEN`
v1
Package apiv1 provide support to create /v1.0 group and add all routes
Package apiv1 provide support to create /v1.0 group and add all routes
create
Package create provides Api methods to create user wallet and store the mnemonic in database
Package create provides Api methods to create user wallet and store the mnemonic in database
healthcheck
Package healthcheck provides healthcheck Api to check if the app is alive, returns 200 if it is not in crashed state
Package healthcheck provides healthcheck Api to check if the app is alive, returns 200 if it is not in crashed state
transfer
Package transfer provides Api methods to transfer tokens from the wallet to another wallet on same chain
Package transfer provides Api methods to transfer tokens from the wallet to another wallet on same chain
wallet
Package wallet provides Api methods to get user wallet's public key
Package wallet provides Api methods to get user wallet's public key

Jump to

Keyboard shortcuts

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