rest

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package rest houses all routes and server logic for all communication over REST. *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router        *tracingRouter.Router
	SecretManager secrets.SecretManager
	MetricClient  metricService
	OktaService   oktaService
	Tracer        *monitoring.Tracer
	// ServiceName is used for tracing purposes
	ServiceName string
}

Server houses all dependencies and routing of the server

func NewServer

func NewServer() *Server

NewServer creates a new instance of server and sets up routes

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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