auth
auth/request.go
Add authd. Start adding our server implementation. Right now, it's very proof-of-concept stage and will almost certainly be entirely rewritten, but it gets a server up and running.
1 package auth
3 const (
4 requestErrAccessDenied = "access_denied"
5 requestErrInsufficient = "insufficient"
6 requestErrOverflow = "overflow"
7 requestErrInvalidValue = "invalid_value"
8 requestErrInvalidFormat = "invalid_format"
9 requestErrMissing = "missing"
10 requestErrNotFound = "not_found"
11 requestErrConflig = "conflict"
12 requestErrActOfGod = "act_of_god"
13 )
15 type requestError struct {
16 Slug string `json:"error,omitempty"`
17 Field string `json:"field,omitempty"`
18 Param string `json:"param,omitempty"`
19 Header string `json:"header,omitempty"`
20 }