http

package
v0.0.0-...-0371123 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultType    = "core"
	DefaultVersion = "1.0.0"
	DefaultHash    = "null"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRequest

type FileRequest struct {
	Type    string `json:"type,omitempty"`
	Version string `json:"version,omitempty"`
	Hash    string `json:"hash,omitempty"`
}

func (*FileRequest) ToPath

func (freq *FileRequest) ToPath() string

func (*FileRequest) Validate

func (freq *FileRequest) Validate()

type FileResponse

type FileResponse struct {
	Type    string `json:"type"`
	Version string `json:"version"`
	Hash    string `json:"hash"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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