config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Protocol   string      `json:"protocol"`
	Host       string      `json:"host"`
	Port       int         `json:"port"`
	Path       string      `json:"path"`
	Headers    []string    `json:"headers"`
	MultiParts []MultiPart `json:"multi-parts"`
	// contains filtered or unexported fields
}

func ReadConfig

func ReadConfig(path string) *Config

func (*Config) GetBoundary

func (c *Config) GetBoundary() string

type MultiPart

type MultiPart struct {
	Type            string      `json:"type"`
	Parameters      []string    `json:"parameters"`
	Body            interface{} `json:"body"`
	StreamingEnable bool        `json:"stream_enable"`
	StreamSize      int         `json:"stream_size"`
	StreamTiming    string      `json:"stream_timing"`
}

Jump to

Keyboard shortcuts

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