models

package
v0.0.0-...-2d7b030 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DatabaseValueDelimiter = ","

Variables

This section is empty.

Functions

This section is empty.

Types

type PseudorandomWord

type PseudorandomWord struct {

	// 随机数序列的种子
	Seed int64 `json:"seed"`

	// 是第多少个单词
	Index int64 `json:"index"`

	// 这个单词是啥
	Text string `json:"text"`
}

PseudorandomWord 伪随机数序列的位置

func NewPseudorandomWordFromDatabaseKeyValue

func NewPseudorandomWordFromDatabaseKeyValue(key, value []byte) (*PseudorandomWord, error)

func (*PseudorandomWord) GetDatabaseKey

func (x *PseudorandomWord) GetDatabaseKey() []byte

func (*PseudorandomWord) GetDatabaseValue

func (x *PseudorandomWord) GetDatabaseValue() []byte

func (*PseudorandomWord) SetDatabaseKey

func (x *PseudorandomWord) SetDatabaseKey(key []byte)

func (*PseudorandomWord) SetDatabaseValue

func (x *PseudorandomWord) SetDatabaseValue(value []byte) error

func (*PseudorandomWord) String

func (x *PseudorandomWord) String() string

Jump to

Keyboard shortcuts

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