client

package
v0.0.0-...-323ef38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package client 对客户端请求的处理。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 包含了整个可动态加载的数据以及路由的相关操作。 当需要重新加载数据时,只要获取一个新的 Client 实例即可。

func New

func New(path *path.Path) (*Client, error)

New 声明一个新的 Client 实例

func (*Client) Created

func (client *Client) Created() time.Time

Created 返回当前数据的创建时间

func (*Client) Free

func (client *Client) Free()

Free 释放 Client 内容

func (*Client) Mount

func (client *Client) Mount(mux *mux.Mux, html *html.HTML) error

Mount 挂载路由以及数据

Directories

Path Synopsis
Package page 定义 html 页面需要的内容
Package page 定义 html 页面需要的内容

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL