Documentation ¶
Overview ¶
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func HttpCache(ctx echo.Context, eTag interface{}, ...) bool
- func Output(content []byte, ctx *X.Context) (err error)
- func OutputHTML(content []byte, ctx *X.Context, args ...int) (err error)
- func OutputJSON(content []byte, ctx *X.Context, args ...int) (err error)
- func OutputXML(content []byte, ctx *X.Context, args ...int) (err error)
- func RenderHTML(ctx *X.Context) (b []byte, err error)
- func RenderJSON(ctx *X.Context) (b []byte, err error)
- func RenderXML(ctx *X.Context) (b []byte, err error)
- type Config
- func (c *Config) Expired(rule *Rule, ctx echo.Context, saveFile string) (int64, bool)
- func (c *Config) Middleware() echo.MiddlewareFunc
- func (c *Config) Read(ctx echo.Context) bool
- func (c *Config) Rule(rule interface{}) *Rule
- func (c *Config) SaveFileName(rule *Rule, ctx echo.Context) string
- func (c *Config) Write(b []byte, ctx echo.Context) bool
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.