summary refs log tree commit diff stats
path: root/types.go
blob: 7cfa7d6eb37afadc5652fe952f57336dbf9ba376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import "regexp"

const txtutf8 = "text/plain; charset=utf8"
const htmlutf8 = "text/html; charset=utf8"

type configuration struct {
	port         string
	validPath    *regexp.Regexp
	quietLogging bool
	fileLogging  bool
	logFile      string
}

var confObj = &configuration{}

func initConfig() {
	confObj.validPath = regexp.MustCompile("^/(api)/(plain)/(tweets|users|tags|mentions)")
}