Documentation ¶
Index ¶
- Variables
- func Init(mux *http.ServeMux, config Config)
- func Parse[T any](r *http.Request, v T) (err error)
- func UserFrom(r *http.Request) (uid uint64, err error)
- func ValidShort(short string) (ok bool)
- func ValidUrl(url string) (err error)
- type AuthConfig
- type Config
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type ListEntry
- type LogEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var IsLetter = regexp.MustCompile(`^[0-9a-zA-Z_\-]+$`).MatchString
Functions ¶
func ValidShort ¶
Types ¶
type AuthConfig ¶
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct { }
type DeleteRequest ¶
type DeleteRequest struct {
Short string `json:"Short"`
}
type DeleteResponse ¶
type DeleteResponse struct { }
Click to show internal directories.
Click to hide internal directories.