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 ¶
- Variables
- func Cmd(ctx echo.Context) error
- func CmdSendBySockJS(c sockjs.Session) error
- func CmdSendByWebsocket(c *websocket.Conn, ctx echo.Context) error
- func Connections(ctx echo.Context) (err error)
- func Info(ctx echo.Context) error
- func NetStatTCP() (<-chan net.ConnectionStat, error)
- func NetStatUDP() (<-chan net.ConnectionStat, error)
- func ProcessInfo(ctx echo.Context) error
- func ProcessKill(ctx echo.Context) error
- func Service(ctx echo.Context) error
- type MemoryInformation
- type SystemInformation
Constants ¶
This section is empty.
Variables ¶
var ErrNotImplemented = errors.New("not implemented yet")
Functions ¶
func CmdSendBySockJS ¶
func Connections ¶ added in v1.1.0
func NetStatTCP ¶ added in v1.1.0
func NetStatTCP() (<-chan net.ConnectionStat, error)
func NetStatUDP ¶ added in v1.1.0
func NetStatUDP() (<-chan net.ConnectionStat, error)
func ProcessInfo ¶ added in v1.1.0
func ProcessKill ¶ added in v1.1.0
Types ¶
type MemoryInformation ¶
type MemoryInformation struct { Virtual *mem.VirtualMemoryStat Swap *mem.SwapMemoryStat }
type SystemInformation ¶
type SystemInformation struct { CPU []cpu.InfoStat Partitions []disk.PartitionStat DiskUsages []*disk.UsageStat DiskIO map[string]disk.IOCountersStat Host *host.InfoStat Load *load.AvgStat Memory *MemoryInformation NetIO []net.IOCountersStat PIDs []int32 Process []*process.Process }