models

package
v0.0.0-...-23d494c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ColferSizeMax is the upper limit for serial byte sizes.
	ColferSizeMax = 16 * 1024 * 1024
)

Colfer configuration attributes

Functions

This section is empty.

Types

type ColferError

type ColferError int

ColferError signals a data mismatch as as a byte index.

func (ColferError) Error

func (i ColferError) Error() string

Error honors the error interface.

type ColferMax

type ColferMax string

ColferMax signals an upper limit breach.

func (ColferMax) Error

func (m ColferMax) Error() string

Error honors the error interface.

type ColferTail

type ColferTail int

ColferTail signals data continuation as a byte index.

func (ColferTail) Error

func (i ColferTail) Error() string

Error honors the error interface.

type Puzzle

type Puzzle struct {
	Xk uint64

	K int64

	N int64

	Checksum string
}

func (*Puzzle) MarshalBinary

func (o *Puzzle) MarshalBinary() (data []byte, err error)

MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is models.ColferMax.

func (*Puzzle) MarshalLen

func (o *Puzzle) MarshalLen() (int, error)

MarshalLen returns the Colfer serial byte size. The error return option is models.ColferMax.

func (*Puzzle) MarshalTo

func (o *Puzzle) MarshalTo(buf []byte) int

MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.

func (*Puzzle) Unmarshal

func (o *Puzzle) Unmarshal(data []byte) (int, error)

Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, models.ColferError and models.ColferMax.

func (*Puzzle) UnmarshalBinary

func (o *Puzzle) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, models.ColferError, models.ColferTail and models.ColferMax.

type Quote

type Quote struct {
	Type     string `json:"type"`
	Language string `json:"language"`
	Source   string `json:"source"`
	Quote    string `json:"quote"`
	Author   string `json:"author"`
}

type Quotes

type Quotes []Quote

easyjson:json

func (Quotes) MarshalEasyJSON

func (v Quotes) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Quotes) MarshalJSON

func (v Quotes) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Quotes) UnmarshalEasyJSON

func (v *Quotes) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Quotes) UnmarshalJSON

func (v *Quotes) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QuotesWork

type QuotesWork struct {
	ID     uint
	Quote  string
	Error  error
	Finish chan struct{}
}

type Request

type Request struct {
	ID uint64
}

Course is the grounds where the game of golf is played.

func (*Request) MarshalBinary

func (o *Request) MarshalBinary() (data []byte, err error)

MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is models.ColferMax.

func (*Request) MarshalLen

func (o *Request) MarshalLen() (int, error)

MarshalLen returns the Colfer serial byte size. The error return option is models.ColferMax.

func (*Request) MarshalTo

func (o *Request) MarshalTo(buf []byte) int

MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.

func (*Request) Unmarshal

func (o *Request) Unmarshal(data []byte) (int, error)

Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, models.ColferError and models.ColferMax.

func (*Request) UnmarshalBinary

func (o *Request) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, models.ColferError, models.ColferTail and models.ColferMax.

type Result

type Result struct {
	Ok bool
}

func (*Result) MarshalBinary

func (o *Result) MarshalBinary() (data []byte, err error)

MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is models.ColferMax.

func (*Result) MarshalLen

func (o *Result) MarshalLen() (int, error)

MarshalLen returns the Colfer serial byte size. The error return option is models.ColferMax.

func (*Result) MarshalTo

func (o *Result) MarshalTo(buf []byte) int

MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.

func (*Result) Unmarshal

func (o *Result) Unmarshal(data []byte) (int, error)

Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, models.ColferError and models.ColferMax.

func (*Result) UnmarshalBinary

func (o *Result) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, models.ColferError, models.ColferTail and models.ColferMax.

type Solve

type Solve struct {
	Y0 uint64
}

func (*Solve) MarshalBinary

func (o *Solve) MarshalBinary() (data []byte, err error)

MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is models.ColferMax.

func (*Solve) MarshalLen

func (o *Solve) MarshalLen() (int, error)

MarshalLen returns the Colfer serial byte size. The error return option is models.ColferMax.

func (*Solve) MarshalTo

func (o *Solve) MarshalTo(buf []byte) int

MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.

func (*Solve) Unmarshal

func (o *Solve) Unmarshal(data []byte) (int, error)

Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, models.ColferError and models.ColferMax.

func (*Solve) UnmarshalBinary

func (o *Solve) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, models.ColferError, models.ColferTail and models.ColferMax.

type Textquote

type Textquote struct {
	Text string
}

func (*Textquote) MarshalBinary

func (o *Textquote) MarshalBinary() (data []byte, err error)

MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is models.ColferMax.

func (*Textquote) MarshalLen

func (o *Textquote) MarshalLen() (int, error)

MarshalLen returns the Colfer serial byte size. The error return option is models.ColferMax.

func (*Textquote) MarshalTo

func (o *Textquote) MarshalTo(buf []byte) int

MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.

func (*Textquote) Unmarshal

func (o *Textquote) Unmarshal(data []byte) (int, error)

Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, models.ColferError and models.ColferMax.

func (*Textquote) UnmarshalBinary

func (o *Textquote) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, models.ColferError, models.ColferTail and models.ColferMax.

Jump to

Keyboard shortcuts

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