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
- Variables
- func AddAdministrativeTask(name string, options []string)
- func AddToHosts(ipList []IpList) error
- func CheckProcessorBlocks(blocks []dvcontext.ProcessorBlock, request *dvcontext.RequestContext) bool
- func GetContentTypeByFileName(name string) string
- func GetRewriteMapItem(url string, full bool, src string) *dvcontext.RewriteMapItem
- func HandleDefaultOptionHeaders(server *dvcontext.MicroCoreInfo, w http.ResponseWriter)
- func HandleFromFile(request *dvcontext.RequestContext)
- func HandleFromFileWithProcessorCheck(request *dvcontext.RequestContext)
- func HandleFromString(request *dvcontext.RequestContext, data string)
- func HandlerWriteDirect(request *dvcontext.RequestContext)
- func MakeDefaultHandler(defaultServerInfo *dvcontext.MicroCoreInfo, ...) http.HandlerFunc
- func PrepareAccessControlLists(data string) dvcontext.MicroCoreHeaderAttribute
- func PrepareProxyName(name string) string
- func ProcessHosts(ipList []IpList, isRemoval bool)
- func RemoveFromHosts(ipList []IpList) error
- func ResolveAdministrativeTasks()
- func SetRequestUrl(request *dvcontext.RequestContext, url string)
- type IpList
- type ReadLinesPool
Constants ¶
const ( TRY_HTTP_FORWARD_URL_ALREADY_COMPOSED = 1 TRY_HTTP_FORWARD_URL_MAIN_COMPOSED = 2 )
Variables ¶
var EOL_BYTES = []byte{10}
var LogFileServer bool
var LogHosts bool
var LogServer bool
var MimeTypes = map[string]string{}/* 109 elements not displayed */
var ServiceFolder = "..$$$"
Functions ¶
func AddAdministrativeTask ¶
func AddToHosts ¶
func CheckProcessorBlocks ¶
func CheckProcessorBlocks(blocks []dvcontext.ProcessorBlock, request *dvcontext.RequestContext) bool
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 ProcessHosts ¶
func RemoveFromHosts ¶
func ResolveAdministrativeTasks ¶
func ResolveAdministrativeTasks()
func SetRequestUrl ¶
func SetRequestUrl(request *dvcontext.RequestContext, url string)
Types ¶
type ReadLinesPool ¶
type ReadLinesPool struct {
// contains filtered or unexported fields
}