Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Fix some godocs
Matthew Holt committed
Apr 11, 2020 at 09:01 UTC
68cebb28d063a7a71705ce022f118b5e1205fa3f
2 files changed
+7
-3
modules/caddyhttp/celmatcher.go
+4
@@ -44,6 +44,10 @@ func init() {
44
// This enables complex logic to be expressed using a comfortable,
45
// familiar syntax.
46
//
47
+// This matcher's JSON interface is actually a string, not a struct.
48
+// The generated docs are not correct because this type has custom
49
+// marshaling logic.
50
+//
51
// COMPATIBILITY NOTE: This module is still experimental and is not
52
// subject to Caddy's compatibility guarantee.
53
type MatchExpression struct {
modules/caddyhttp/staticerror.go
+3
-3
@@ -34,11 +34,11 @@ func init() {
34
// Since this handler does not write a response, the error information
35
// is for use by the server to know how to handle the error.
36
type StaticError struct {
37
- // The recommended HTTP status code. Can be either an integer or a
38
- // string if placeholders are needed. Optional. Default is 500.
37
+ // The error message. Optional. Default is no error message.
38
Error string `json:"error,omitempty"`
39
41
- // The error message. Optional. Default is no error message.
40
+ // The recommended HTTP status code. Can be either an integer or a
41
+ // string if placeholders are needed. Optional. Default is 500.
42
StatusCode WeakString `json:"status_code,omitempty"`
43
}
44