api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientTLS

type ClientTLS struct {
	// CA
	Ca string

	// Public Crt
	Crt string

	// Private Key
	Key string
}

ClientTLS defines client crt and key

type Config

type Config interface {
	GetConfigPath(path string) string
	GetClientCert() string
	GetClientKey() string
	GetNamedClientOverride() (map[string]*ClientTLS, error)
	GetSchemaConfig(contentType string) (*SchemaConfig, error)
	GetCaCerts() []string
}

Config configuration interface

type SchemaConfig

type SchemaConfig struct {
	// Content type
	Type string

	// Request schema
	Request string

	// Response schema
	Response string
}

SchemaConfig defines request and response schemas for content type

Jump to

Keyboard shortcuts

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