v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CiperKeyNames

func CiperKeyNames() []string

CiperKeyNames returns a list of possible string values of CiperKey.

func EnigmaDecode

func EnigmaDecode(bytes []byte) (out []byte, err error)

func EnigmaEncode

func EnigmaEncode(bytes []byte) (out []byte, err error)

Types

type CiperKey

type CiperKey int
ENUM(

synapse.default.crypto )

const (
	// CiperKeySynapseDefaultCrypto is a CiperKey of type Synapse.Default.Crypto.
	CiperKeySynapseDefaultCrypto CiperKey = iota
)

func ParseCiperKey

func ParseCiperKey(name string) (CiperKey, error)

ParseCiperKey attempts to convert a string to a CiperKey.

func (CiperKey) String

func (x CiperKey) String() string

String implements the Stringer interface.

type Hashset

type Hashset map[string]interface{}

Hashset

func (*Hashset) FromDB

func (field *Hashset) FromDB(bytes []byte) (err error)

func (Hashset) ToDB

func (field Hashset) ToDB() (out []byte, err error)

type String

type String string

String

func (*String) FromDB

func (field *String) FromDB(bytes []byte) (err error)

func (String) ToDB

func (field String) ToDB() (out []byte, err error)

Jump to

Keyboard shortcuts

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