edgegrid

package
v0.0.0-...-86f1c50 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package edgegrid allows you to sign up your request to calling Akamai APIs. The package is based on: https://github.com/akamai/AkamaiOPEN-edgegrid-golang/tree/master/edgegrid

Package edgegrid allows you to sign up your request to calling Akamai APIs. The package is based on: https://github.com/akamai/AkamaiOPEN-edgegrid-golang/tree/master/edgegrid

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRequestHeader

func AddRequestHeader(log logger.GenericLogger, config Config, req *http.Request) *http.Request

AddRequestHeader sets the Authorization header to use Akamai Open API.

Types

type Config

type Config struct {
	Host         string
	ClientToken  string
	ClientSecret string
	AccessToken  string
	HeaderToSign []string
	MaxBody      int
}

Config provides all the necessary fields to create authorization header for calling Akamai APIs.

Jump to

Keyboard shortcuts

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