utp

package
v3.45.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v3.8.1

func New(ctx context.Context, config interface{}) (interface{}, error)

New creates a new UTP header for the given config.

Types

type Config

type Config struct {
	Version              uint32   `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetVersion

func (m *Config) GetVersion() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown added in v3.23.1

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal added in v3.23.1

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge added in v3.23.1

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size added in v3.23.1

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal added in v3.23.1

func (m *Config) XXX_Unmarshal(b []byte) error

type UTP

type UTP struct {
	// contains filtered or unexported fields
}

func (*UTP) Size

func (*UTP) Size() int32

func (*UTP) Write

func (u *UTP) Write(b []byte) (int, error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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