repository

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	GetNameList(
		dirPath string,
	) ([]string, error)

	Exist(
		path string,
	) bool

	WriteDir(
		path string,
	) error

	Write(
		path string,
		body string,
	) error

	Remove(
		path string,
	) error
}

func NewFile

func NewFile() File

type HTTPClient

type HTTPClient interface {
	Get(
		url string,
		params map[string]any,
		headers map[string]string,
	) (int64, int, []byte, error)

	Post(
		url string,
		params []byte,
		headers map[string]string,
	) (int64, int, []byte, error)

	Put(
		url string,
		params []byte,
		headers map[string]string,
	) (int64, int, []byte, error)

	Delete(
		url string,
		params map[string]any,
		headers map[string]string,
	) (int64, int, []byte, error)
}

func NewHTTPClient

func NewHTTPClient() HTTPClient

type TemplateClient

type TemplateClient interface {
	GetMerged(
		tmpl string,
		src any,
	) (string, error)
}

func NewTemplateClient

func NewTemplateClient() TemplateClient

Jump to

Keyboard shortcuts

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