config

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLengthPacks = 64

Variables

View Source
var ErrTooManyPacks = errs.NewSilentErr("too many packs")

ErrTooManyPacks is returned when sends too many packs.

Functions

This section is empty.

Types

type ActiveFeatures

type ActiveFeatures struct {
	ActiveFeatures []key.Key
}

func (*ActiveFeatures) Decode

func (p *ActiveFeatures) Decode(c *proto.PacketContext, rd io.Reader) (err error)

func (*ActiveFeatures) Encode

func (p *ActiveFeatures) Encode(c *proto.PacketContext, wr io.Writer) error

type FinishedUpdate

type FinishedUpdate struct{}

func (*FinishedUpdate) Decode

func (p *FinishedUpdate) Decode(c *proto.PacketContext, rd io.Reader) (err error)

func (*FinishedUpdate) Encode

func (p *FinishedUpdate) Encode(c *proto.PacketContext, wr io.Writer) error

type KnownPack added in v0.37.0

type KnownPack struct {
	Namespace string
	Id        string
	Version   string
}

func (*KnownPack) Read added in v0.37.0

func (p *KnownPack) Read(rd io.Reader)

func (*KnownPack) Write added in v0.37.0

func (p *KnownPack) Write(wr io.Writer)

type KnownPacks added in v0.37.0

type KnownPacks struct {
	Packs []KnownPack
}

func (*KnownPacks) Decode added in v0.37.0

func (p *KnownPacks) Decode(c *proto.PacketContext, rd io.Reader) error

func (*KnownPacks) Encode added in v0.37.0

func (p *KnownPacks) Encode(c *proto.PacketContext, wr io.Writer) error

type RegistrySync

type RegistrySync struct {
	Data []byte
}

func (*RegistrySync) Decode

func (p *RegistrySync) Decode(c *proto.PacketContext, rd io.Reader) (err error)

func (*RegistrySync) Encode

func (p *RegistrySync) Encode(c *proto.PacketContext, wr io.Writer) error

type StartUpdate

type StartUpdate struct{}

func (*StartUpdate) Decode

func (p *StartUpdate) Decode(c *proto.PacketContext, rd io.Reader) (err error)

func (*StartUpdate) Encode

func (p *StartUpdate) Encode(c *proto.PacketContext, wr io.Writer) error

type TagsUpdate

type TagsUpdate struct {
	Tags map[string]map[string][]int
}

func (*TagsUpdate) Decode

func (p *TagsUpdate) Decode(c *proto.PacketContext, rd io.Reader) (err error)

func (*TagsUpdate) Encode

func (p *TagsUpdate) Encode(c *proto.PacketContext, wr io.Writer) error

Jump to

Keyboard shortcuts

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