ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/go/pkg/mod/github.com/hashicorp/go-msgpack/[email protected]/codec/internal/testdata/raft.go
package testdata

import "time"

// copy of all the raft data types

type ProtocolVersion int
type LogType uint8
type SnapshotVersion int
type ServerID string
type ServerAddress string
type ServerSuffrage int
type Log struct {
	Index      uint64
	Term       uint64
	Type       LogType
	Data       []byte
	Extensions []byte
	AppendedAt time.Time
}
type RPCHeader struct {
	ProtocolVersion ProtocolVersion
	ID              []byte
	Addr            []byte
}
type AppendEntriesRequest struct {
	RPCHeader
	Term              uint64
	Leader            []byte
	PrevLogEntry      uint64
	PrevLogTerm       uint64
	Entries           []*Log
	LeaderCommitIndex uint64
}
type AppendEntriesResponse struct {
	RPCHeader
	Term           uint64
	LastLog        uint64
	Success        bool
	NoRetryBackoff bool
}
type InstallSnapshotRequest struct {
	RPCHeader
	SnapshotVersion    SnapshotVersion
	Term               uint64
	Leader             []byte
	LastLogIndex       uint64
	LastLogTerm        uint64
	Peers              []byte
	Configuration      []byte
	ConfigurationIndex uint64
	Size               int64
}
type InstallSnapshotResponse struct {
	RPCHeader
	Term    uint64
	Success bool
}
type RequestVoteRequest struct {
	RPCHeader
	Term               uint64
	Candidate          []byte
	LastLogIndex       uint64
	LastLogTerm        uint64
	LeadershipTransfer bool
}
type RequestVoteResponse struct {
	RPCHeader
	Term    uint64
	Peers   []byte
	Granted bool
}
type Server struct {
	Suffrage ServerSuffrage
	ID       ServerID
	Address  ServerAddress
}
type Configuration struct {
	Servers []Server
}

type SerializeTest struct {
	Name            string
	EncodedBytesHex string
	ExpectedData    interface{}
}