v2

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCryptoName = "synapse.default.crypto"

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 CryptoObject

type CryptoObject map[string]interface{}

CryptoObject

func (CryptoObject) Object

func (cj CryptoObject) Object() map[string]interface{}

func (*CryptoObject) Scan

func (cj *CryptoObject) Scan(value interface{}) error

func (CryptoObject) Value

func (cj CryptoObject) Value() (driver.Value, error)

type CryptoString

type CryptoString string

CryptoString

func (*CryptoString) Scan

func (cs *CryptoString) Scan(value interface{}) error

func (CryptoString) String

func (cs CryptoString) String() string

func (CryptoString) Value

func (cs CryptoString) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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