update

package
v1.0.0-beta7-fix1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: AGPL-3.0 Imports: 15 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