summary refs log tree commit diff stats
path: root/types.go
blob: b5f27ce05a1a2ba68e44e729d22b1b5782b48cc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main

// content-type consts
const txtutf8 = "text/plain; charset=utf-8"
const htmlutf8 = "text/html; charset=utf-8"
const cssutf8 = "text/css; charset=utf-8"

// config object definition
type configuration struct {
	port          int
	logfile       string
	stdoutLogging bool
	version       string
	Instance
}

// Instance refers to this specific instance of getwtxt
type Instance struct {
	Name  string
	URL   string
	Owner string
	Mail  string
	Desc  string
}

// ipCtxKey is the Context value key for user IP addresses
type ipCtxKey int

const ctxKey ipCtxKey = iota