dvcom

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

********************************************************************** MicroCore Copyright 2020 - 2024 by Danyil Dobryvechir (dobrivecher@yahoo.com ddobryvechir@gmail.com) ***********************************************************************

********************************************************************** MicroCore Copyright 2020 - 2020 by Danyil Dobryvechir (dobrivecher@yahoo.com ddobryvechir@gmail.com) ***********************************************************************

********************************************************************** MicroCore Copyright 2020 - 2020 by Danyil Dobryvechir (dobrivecher@yahoo.com ddobryvechir@gmail.com) ***********************************************************************

********************************************************************** MicroCore Copyright 2020 - 2020 by Danyil Dobryvechir (dobrivecher@yahoo.com ddobryvechir@gmail.com) ***********************************************************************

Index

Constants

View Source
const (
	TRY_HTTP_FORWARD_URL_ALREADY_COMPOSED = 1
	TRY_HTTP_FORWARD_URL_MAIN_COMPOSED    = 2
)

Variables

View Source
var EOL_BYTES = []byte{10}
View Source
var LogFileServer bool
View Source
var LogHosts bool
View Source
var LogServer bool
View Source
var MimeTypes = map[string]string{}/* 109 elements not displayed */
View Source
var ServiceFolder = "..$$$"

Functions

func AddAdministrativeTask

func AddAdministrativeTask(name string, options []string)

func AddToHosts

func AddToHosts(ipList []IpList) error

func CheckProcessorBlocks

func CheckProcessorBlocks(blocks []dvcontext.ProcessorBlock, request *dvcontext.RequestContext) bool

func GetContentTypeByFileName

func GetContentTypeByFileName(name string) string

func GetRewriteMapItem

func GetRewriteMapItem(url string, full bool, src string) *dvcontext.RewriteMapItem

func HandleDefaultOptionHeaders added in v1.0.2

func HandleDefaultOptionHeaders(server *dvcontext.MicroCoreInfo, w http.ResponseWriter)

func HandleFromFile

func HandleFromFile(request *dvcontext.RequestContext)

func HandleFromFileWithProcessorCheck

func HandleFromFileWithProcessorCheck(request *dvcontext.RequestContext)

func HandleFromString

func HandleFromString(request *dvcontext.RequestContext, data string)

func HandlerWriteDirect

func HandlerWriteDirect(request *dvcontext.RequestContext)

func MakeDefaultHandler

func MakeDefaultHandler(defaultServerInfo *dvcontext.MicroCoreInfo, hostServerInfo map[string]*dvcontext.MicroCoreInfo) http.HandlerFunc

func PrepareAccessControlLists

func PrepareAccessControlLists(data string) dvcontext.MicroCoreHeaderAttribute

func PrepareProxyName

func PrepareProxyName(name string) string

func ProcessHosts

func ProcessHosts(ipList []IpList, isRemoval bool)

func RemoveFromHosts

func RemoveFromHosts(ipList []IpList) error

func ResolveAdministrativeTasks

func ResolveAdministrativeTasks()

func SetRequestUrl

func SetRequestUrl(request *dvcontext.RequestContext, url string)

Types

type IpList

type IpList struct {
	Kind string `json:"kind"`
	Ip   string `json:"ip"`
	Urls string `json:"urls"`
}

type ReadLinesPool

type ReadLinesPool struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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