update

package
v0.9.19-0...-75f36c2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package update 包含go-cqhttp自我更新相关函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromStream

func FromStream(updateWith io.Reader) (err error, errRecover error)

FromStream copy form getlantern/go-update

func Update

func Update(url string, sum []byte) error

Update go-cqhttp自我更新

Types

type WriteSumCounter

type WriteSumCounter struct {
	Total uint64
	Hash  hash.Hash
}

WriteSumCounter 写入量计算实例

func (*WriteSumCounter) Write

func (wc *WriteSumCounter) Write(p []byte) (int, error)

Write 方法将写入的byte长度追加至写入的总长度Total中

Jump to

Keyboard shortcuts

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