api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelloHandler

func HelloHandler(ctx context.Context) http.HandlerFunc

HelloHandler returns function containing a simple hello world example of an api handler

Types

type API

type API struct {
	Router        *mux.Router
	CognitoClient cognito.Client
}

API provides a struct to wrap the api around

func Setup

func Setup(ctx context.Context, r *mux.Router, cognitoClient cognito.Client) *API

Setup function sets up the api and returns an api

type HelloResponse

type HelloResponse struct {
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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