mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-26 14:57:56 +08:00
Vendor Update (#16121)
* update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-git/go-billy/v5 * update github.com/go-git/go-git/v5 * update github.com/go-redis/redis/v8 * update github.com/go-testfixtures/testfixtures/v3 * update github.com/jaytaylor/html2text * update github.com/json-iterator/go * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mattn/go-isatty * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/prometheus/client_golang * update github.com/unrolled/render * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark * update github.com/yuin/goldmark-highlighting Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
go.modgo.summodules.txt
vendor
github.com
Microsoft/go-winio
ProtonMail/go-crypto
AUTHORSCONTRIBUTORSLICENSEPATENTS
bitcurves
brainpool
eax
internal/byteutil
ocb
openpgp
aes/keywrap
armor
canonical_text.goecdh
elgamal
errors
internal
key_generation.gokeys.gokeys_test_data.gopacket
aead_config.goaead_encrypted.gocompressed.goconfig.goencrypted_key.goliteral.goocfb.goone_pass_signature.goopaque.gopacket.goprivate_key.goprivate_key_test_data.gopublic_key.gopublic_key_test_data.goreader.gosignature.gosymmetric_key_encrypted.gosymmetrically_encrypted.gouserattribute.gouserid.go
read.goread_write_test_data.gos2k
write.goPuerkitoBio/goquery
RoaringBitmap/roaring
MakefileREADME.mdarraycontainer.gobitmapcontainer.gofastaggregation.gogo.modgo.sumparallel.goroaring.goroaringarray.goruncontainer.gosmat.go
acomagu/bufpipe
alecthomas/chroma
MakefileREADME.mdgo.modgo.sumiterator.goregexp.gostyle.go
lexers
a
abap.goabnf.goactionscript.goactionscript3.goada.goal.goangular2.goantlr.goapache.goapl.goapplescript.goarduino.goawk.go
b
c
c.gocaddyfile.gocapnproto.goceylon.gocfengine3.gochaiscript.gocheetah.gocl.goclojure.gocmake.gocobol.gocoffee.gocoldfusion.gocoq.gocpp.gocql.gocrystal.gocsharp.gocss.gocython.go
circular
d
e
f
g
h
i
internal
j
k
l
m
make.gomako.gomarkdown.gomason.gomathematica.gomatlab.gomcfunction.gominizinc.gomlir.gomodula2.gomonkeyc.gomwscript.gomyghty.gomysql.go
n
o
p
pacman.goperl.gopig.gopkgconfig.goplaintext.goplsql.gopony.gopostgres.gopostscript.gopovray.gopowershell.goprolog.gopromql.goprotobuf.gopuppet.gopython.gopython3.go
q
r
s
sas.gosass.goscala.goscheme.goscilab.goscss.gosmalltalk.gosmarty.gosml.gosnobol.gosolidity.gosparql.gosql.gosquid.gostylus.goswift.gosystemd.gosystemverilog.go
t
tablegen.gotasm.gotcl.gotcsh.gotermcap.goterminfo.goterraform.gotex.gothrift.gotoml.gotradingview.gotransactsql.goturing.goturtle.gotwig.gotypescript.gotyposcript.go
v
w
x
y
z
styles
andybalholm
brotli
brotli_bit_stream.gocompress_fragment.gocompress_fragment_two_pass.goencode.goentropy_encode_static.gogo.modreader.gowrite_bits.go
cascadia
bits-and-blooms/bitset
.gitignore.travis.ymlLICENSEREADME.mdazure-pipelines.ymlbitset.gogo.modgo.sumpopcnt.gopopcnt_19.gopopcnt_amd64.gopopcnt_amd64.spopcnt_generic.gotrailing_zeros_18.gotrailing_zeros_19.go
blevesearch
caddyserver/certmagic
go-enry/go-enry/v2
go-git
go-billy/v5
go-git/v5
common.goremote.gorepository.gosubmodule.go
config
go.modgo.sumoptions.goplumbing
format/gitignore
object
transport
utils/ioutil
worktree.goworktree_commit.goworktree_js.gogo-redis/redis/v8
CHANGELOG.mdREADME.mdcluster_commands.gocommand.gocommands.goerror.gogo.modgo.sum
internal
options.gopubsub.goredis.gosentinel.gogo-testfixtures/testfixtures/v3
hashicorp/go-retryablehttp
json-iterator/go
klauspost
compress
flate
gzip
zstd
cpuid
lib/pq
libdns/libdns
mattn
microcosm-cc/bluemonday
miekg/dns
Makefile.releaseREADME.mdclient.godefaults.godnssec.godnssec_keygen.godnssec_keyscan.godnssec_privkey.godoc.goedns.gogo.modgo.sumlabels.golisten_no_reuseport.golisten_reuseport.gomsg.gomsg_helpers.goprivaterr.goscan.goscan_rr.gosig0.gosvcb.gotypes.goversion.gozduplicate.gozmsg.goztypes.go
pierrec/lz4/v4
prometheus
client_golang/prometheus
common/model
rs/xid
unrolled/render
.gitignore.golangci.yamlMakefileREADME.mdbuffer.godoc.goengine.gofs_embed.gogo.modgo.sumhelpers.gohelpers_pre16.golock.gorender.go
testdata
basic
admin
another_layout.tmplcontent.tmplcurrent_layout.tmpldelims.tmplhello.tmplhypertext.htmllayout.tmplblocks
custom_funcs
partials
template-dir-test
willf/bitset
xanzy/go-gitlab
client_options.gocommits.gogitlab.gogo.modgo.sumgroup_import_export.gogroup_variables.goissues.gojobs.gomerge_requests.goproject_access_tokens.goproject_managed_licenses.goprojects.goprotected_branches.goreleaselinks.goreleases.goservices.gotypes.gousers.go
yuin
go.etcd.io/bbolt
.gitignore.travis.ymlMakefileREADME.mdbolt_unix.gocompact.godb.gofreelist_hmap.gogo.modgo.summlock_unix.gomlock_windows.gotx.go
go.opentelemetry.io/otel
.gitignore.gitmodules.golangci.ymlCHANGELOG.mdCODEOWNERSCONTRIBUTING.mdMakefileMakefile.protosREADME.mdRELEASING.mdVERSIONING.md
attribute
doc.goget_main_pkgs.shgo.modgo.sumhandler.gometric
pre_release.shpropagation.gopropagation
tag.shtrace.gotrace
verify_examples.shversion.gogo.uber.org
multierr
zap
golang.org/x
crypto
argon2
blake2b
chacha20
curve25519
curve25519.gocurve25519_amd64.gocurve25519_amd64.scurve25519_generic.gocurve25519_noasm.go
internal/field
poly1305
ssh
net
html
http/httpguts
idna
internal/socket
cmsghdr_linux_32bit.goiovec_32bit.gommsghdr_unix.gomsghdr_linux.gomsghdr_linux_32bit.gorawconn_mmsg.gorawconn_msg.gosys_linux_ppc.gosys_posix.gozsys_linux_ppc.go
ipv4
sys_asmreqn.gosys_darwin.gosys_freebsd.gosys_linux.gozsys_darwin.gozsys_freebsd_386.gozsys_freebsd_amd64.gozsys_freebsd_arm.gozsys_freebsd_arm64.gozsys_linux_386.gozsys_linux_amd64.gozsys_linux_arm.gozsys_linux_arm64.gozsys_linux_mips.gozsys_linux_mips64.gozsys_linux_mips64le.gozsys_linux_mipsle.gozsys_linux_ppc.gozsys_linux_ppc64.gozsys_linux_ppc64le.gozsys_linux_riscv64.gozsys_linux_s390x.go
publicsuffix
oauth2
sys
cpu
asm_aix_ppc64.scpu.gocpu_aix.gocpu_arm64.scpu_gc_x86.gocpu_gccgo_x86.gocpu_s390x.scpu_x86.gocpu_x86.s
unix
README.mdasm_aix_ppc64.sasm_bsd_386.sasm_bsd_arm.sasm_linux_386.sasm_linux_amd64.sasm_linux_arm.sasm_linux_arm64.sasm_linux_mips64x.sasm_linux_mipsx.sasm_linux_ppc64x.sasm_linux_riscv64.sasm_linux_s390x.sasm_openbsd_mips64.sasm_solaris_amd64.sfdset.gomkall.shmkerrors.shsyscall_darwin.1_13.gosyscall_darwin.gosyscall_darwin_386.gosyscall_darwin_arm.gosyscall_darwin_libSystem.gosyscall_illumos.gosyscall_linux.gosyscall_linux_386.gosyscall_linux_amd64.gosyscall_linux_arm.gosyscall_linux_arm64.gosyscall_linux_mips64x.gosyscall_linux_mipsx.gosyscall_linux_ppc.gosyscall_linux_ppc64x.gosyscall_linux_riscv64.gosyscall_linux_s390x.gosyscall_linux_sparc64.gosyscall_zos_s390x.gozerrors_darwin_386.gozerrors_darwin_arm.gozerrors_linux.gozerrors_linux_386.gozerrors_linux_amd64.gozerrors_linux_arm.gozerrors_linux_arm64.gozerrors_linux_mips.gozerrors_linux_mips64.gozerrors_linux_mips64le.gozerrors_linux_mipsle.gozerrors_linux_ppc.gozerrors_linux_ppc64.gozerrors_linux_ppc64le.gozerrors_linux_riscv64.gozerrors_linux_s390x.gozerrors_linux_sparc64.gozerrors_zos_s390x.gozsyscall_darwin_386.1_13.gozsyscall_darwin_386.1_13.szsyscall_darwin_386.gozsyscall_darwin_386.szsyscall_darwin_amd64.1_13.gozsyscall_darwin_amd64.1_13.szsyscall_darwin_amd64.gozsyscall_darwin_amd64.szsyscall_darwin_arm.1_13.gozsyscall_darwin_arm.1_13.szsyscall_darwin_arm.gozsyscall_darwin_arm.szsyscall_darwin_arm64.1_13.gozsyscall_darwin_arm64.1_13.szsyscall_darwin_arm64.gozsyscall_darwin_arm64.szsyscall_zos_s390x.gozsysnum_darwin_386.gozsysnum_darwin_arm.gozsysnum_linux_386.gozsysnum_linux_amd64.gozsysnum_linux_arm.gozsysnum_linux_arm64.gozsysnum_linux_mips.gozsysnum_linux_mips64.gozsysnum_linux_mips64le.gozsysnum_linux_mipsle.gozsysnum_linux_ppc.gozsysnum_linux_ppc64.gozsysnum_linux_ppc64le.gozsysnum_linux_riscv64.gozsysnum_linux_s390x.gozsysnum_linux_sparc64.goztypes_darwin_386.goztypes_darwin_amd64.goztypes_darwin_arm.goztypes_darwin_arm64.goztypes_illumos_amd64.goztypes_linux.goztypes_linux_386.goztypes_linux_amd64.goztypes_linux_arm.goztypes_linux_arm64.goztypes_linux_mips.goztypes_linux_mips64.goztypes_linux_mips64le.goztypes_linux_mipsle.goztypes_linux_ppc.goztypes_linux_ppc64.goztypes_linux_ppc64le.goztypes_linux_riscv64.goztypes_linux_s390x.goztypes_linux_sparc64.goztypes_openbsd_386.goztypes_openbsd_amd64.goztypes_openbsd_arm.goztypes_openbsd_arm64.goztypes_openbsd_mips64.goztypes_zos_s390x.go
windows
time/rate
304
vendor/github.com/go-redis/redis/v8/command.go
generated
vendored
304
vendor/github.com/go-redis/redis/v8/command.go
generated
vendored
@ -1512,7 +1512,7 @@ type XInfoConsumer struct {
|
||||
Idle int64
|
||||
}
|
||||
|
||||
var _ Cmder = (*XInfoGroupsCmd)(nil)
|
||||
var _ Cmder = (*XInfoConsumersCmd)(nil)
|
||||
|
||||
func NewXInfoConsumersCmd(ctx context.Context, stream string, group string) *XInfoConsumersCmd {
|
||||
return &XInfoConsumersCmd{
|
||||
@ -1769,8 +1769,14 @@ func xStreamInfoParser(rd *proto.Reader, n int64) (interface{}, error) {
|
||||
info.LastGeneratedID, err = rd.ReadString()
|
||||
case "first-entry":
|
||||
info.FirstEntry, err = readXMessage(rd)
|
||||
if err == Nil {
|
||||
err = nil
|
||||
}
|
||||
case "last-entry":
|
||||
info.LastEntry, err = readXMessage(rd)
|
||||
if err == Nil {
|
||||
err = nil
|
||||
}
|
||||
default:
|
||||
return nil, fmt.Errorf("redis: unexpected content %s "+
|
||||
"in XINFO STREAM reply", key)
|
||||
@ -1784,6 +1790,302 @@ func xStreamInfoParser(rd *proto.Reader, n int64) (interface{}, error) {
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
type XInfoStreamFullCmd struct {
|
||||
baseCmd
|
||||
val *XInfoStreamFull
|
||||
}
|
||||
|
||||
type XInfoStreamFull struct {
|
||||
Length int64
|
||||
RadixTreeKeys int64
|
||||
RadixTreeNodes int64
|
||||
LastGeneratedID string
|
||||
Entries []XMessage
|
||||
Groups []XInfoStreamGroup
|
||||
}
|
||||
|
||||
type XInfoStreamGroup struct {
|
||||
Name string
|
||||
LastDeliveredID string
|
||||
PelCount int64
|
||||
Pending []XInfoStreamGroupPending
|
||||
Consumers []XInfoStreamConsumer
|
||||
}
|
||||
|
||||
type XInfoStreamGroupPending struct {
|
||||
ID string
|
||||
Consumer string
|
||||
DeliveryTime time.Time
|
||||
DeliveryCount int64
|
||||
}
|
||||
|
||||
type XInfoStreamConsumer struct {
|
||||
Name string
|
||||
SeenTime time.Time
|
||||
PelCount int64
|
||||
Pending []XInfoStreamConsumerPending
|
||||
}
|
||||
|
||||
type XInfoStreamConsumerPending struct {
|
||||
ID string
|
||||
DeliveryTime time.Time
|
||||
DeliveryCount int64
|
||||
}
|
||||
|
||||
var _ Cmder = (*XInfoStreamFullCmd)(nil)
|
||||
|
||||
func NewXInfoStreamFullCmd(ctx context.Context, args ...interface{}) *XInfoStreamFullCmd {
|
||||
return &XInfoStreamFullCmd{
|
||||
baseCmd: baseCmd{
|
||||
ctx: ctx,
|
||||
args: args,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (cmd *XInfoStreamFullCmd) Val() *XInfoStreamFull {
|
||||
return cmd.val
|
||||
}
|
||||
|
||||
func (cmd *XInfoStreamFullCmd) Result() (*XInfoStreamFull, error) {
|
||||
return cmd.val, cmd.err
|
||||
}
|
||||
|
||||
func (cmd *XInfoStreamFullCmd) String() string {
|
||||
return cmdString(cmd, cmd.val)
|
||||
}
|
||||
|
||||
func (cmd *XInfoStreamFullCmd) readReply(rd *proto.Reader) error {
|
||||
n, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if n != 12 {
|
||||
return fmt.Errorf("redis: got %d elements in XINFO STREAM FULL reply,"+
|
||||
"wanted 12", n)
|
||||
}
|
||||
|
||||
cmd.val = &XInfoStreamFull{}
|
||||
|
||||
for i := 0; i < 6; i++ {
|
||||
key, err := rd.ReadString()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
switch key {
|
||||
case "length":
|
||||
cmd.val.Length, err = rd.ReadIntReply()
|
||||
case "radix-tree-keys":
|
||||
cmd.val.RadixTreeKeys, err = rd.ReadIntReply()
|
||||
case "radix-tree-nodes":
|
||||
cmd.val.RadixTreeNodes, err = rd.ReadIntReply()
|
||||
case "last-generated-id":
|
||||
cmd.val.LastGeneratedID, err = rd.ReadString()
|
||||
case "entries":
|
||||
cmd.val.Entries, err = readXMessageSlice(rd)
|
||||
case "groups":
|
||||
cmd.val.Groups, err = readStreamGroups(rd)
|
||||
default:
|
||||
return fmt.Errorf("redis: unexpected content %s "+
|
||||
"in XINFO STREAM reply", key)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func readStreamGroups(rd *proto.Reader) ([]XInfoStreamGroup, error) {
|
||||
n, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
groups := make([]XInfoStreamGroup, 0, n)
|
||||
for i := 0; i < n; i++ {
|
||||
nn, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if nn != 10 {
|
||||
return nil, fmt.Errorf("redis: got %d elements in XINFO STREAM FULL reply,"+
|
||||
"wanted 10", nn)
|
||||
}
|
||||
|
||||
group := XInfoStreamGroup{}
|
||||
|
||||
for f := 0; f < 5; f++ {
|
||||
key, err := rd.ReadString()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch key {
|
||||
case "name":
|
||||
group.Name, err = rd.ReadString()
|
||||
case "last-delivered-id":
|
||||
group.LastDeliveredID, err = rd.ReadString()
|
||||
case "pel-count":
|
||||
group.PelCount, err = rd.ReadIntReply()
|
||||
case "pending":
|
||||
group.Pending, err = readXInfoStreamGroupPending(rd)
|
||||
case "consumers":
|
||||
group.Consumers, err = readXInfoStreamConsumers(rd)
|
||||
default:
|
||||
return nil, fmt.Errorf("redis: unexpected content %s "+
|
||||
"in XINFO STREAM reply", key)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
groups = append(groups, group)
|
||||
}
|
||||
|
||||
return groups, nil
|
||||
}
|
||||
|
||||
func readXInfoStreamGroupPending(rd *proto.Reader) ([]XInfoStreamGroupPending, error) {
|
||||
n, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pending := make([]XInfoStreamGroupPending, 0, n)
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
nn, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if nn != 4 {
|
||||
return nil, fmt.Errorf("redis: got %d elements in XINFO STREAM FULL reply,"+
|
||||
"wanted 4", nn)
|
||||
}
|
||||
|
||||
p := XInfoStreamGroupPending{}
|
||||
|
||||
p.ID, err = rd.ReadString()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
p.Consumer, err = rd.ReadString()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
delivery, err := rd.ReadIntReply()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.DeliveryTime = time.Unix(delivery/1000, delivery%1000*int64(time.Millisecond))
|
||||
|
||||
p.DeliveryCount, err = rd.ReadIntReply()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pending = append(pending, p)
|
||||
}
|
||||
|
||||
return pending, nil
|
||||
}
|
||||
|
||||
func readXInfoStreamConsumers(rd *proto.Reader) ([]XInfoStreamConsumer, error) {
|
||||
n, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
consumers := make([]XInfoStreamConsumer, 0, n)
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
nn, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if nn != 8 {
|
||||
return nil, fmt.Errorf("redis: got %d elements in XINFO STREAM FULL reply,"+
|
||||
"wanted 8", nn)
|
||||
}
|
||||
|
||||
c := XInfoStreamConsumer{}
|
||||
|
||||
for f := 0; f < 4; f++ {
|
||||
cKey, err := rd.ReadString()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch cKey {
|
||||
case "name":
|
||||
c.Name, err = rd.ReadString()
|
||||
case "seen-time":
|
||||
seen, err := rd.ReadIntReply()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
c.SeenTime = time.Unix(seen/1000, seen%1000*int64(time.Millisecond))
|
||||
case "pel-count":
|
||||
c.PelCount, err = rd.ReadIntReply()
|
||||
case "pending":
|
||||
pendingNumber, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
c.Pending = make([]XInfoStreamConsumerPending, 0, pendingNumber)
|
||||
|
||||
for pn := 0; pn < pendingNumber; pn++ {
|
||||
nn, err := rd.ReadArrayLen()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if nn != 3 {
|
||||
return nil, fmt.Errorf("redis: got %d elements in XINFO STREAM reply,"+
|
||||
"wanted 3", nn)
|
||||
}
|
||||
|
||||
p := XInfoStreamConsumerPending{}
|
||||
|
||||
p.ID, err = rd.ReadString()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
delivery, err := rd.ReadIntReply()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.DeliveryTime = time.Unix(delivery/1000, delivery%1000*int64(time.Millisecond))
|
||||
|
||||
p.DeliveryCount, err = rd.ReadIntReply()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
c.Pending = append(c.Pending, p)
|
||||
}
|
||||
default:
|
||||
return nil, fmt.Errorf("redis: unexpected content %s "+
|
||||
"in XINFO STREAM reply", cKey)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
consumers = append(consumers, c)
|
||||
}
|
||||
|
||||
return consumers, nil
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
type ZSliceCmd struct {
|
||||
baseCmd
|
||||
|
||||
|
Reference in New Issue
Block a user