common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeistelDecrypt

func FeistelDecrypt(data uint64, key []byte) uint64

Feistel网络解密(还原int64)

func FeistelEncrypt

func FeistelEncrypt(data uint64, key []byte) uint64

Feistel网络加密(混淆int64)

Types

type DecodeFunc added in v0.1.0

type DecodeFunc func(any) error

type HandleFunc added in v0.1.0

type HandleFunc func(context.Context, DecodeFunc) (any, error)

type RegisterFunc added in v0.1.0

type RegisterFunc func(string, string, HandleFunc)

type ServiceMethodSpec added in v0.1.0

type ServiceMethodSpec struct {
	Name     string
	Options  map[string]string
	Request  string
	Response string
}

Jump to

Keyboard shortcuts

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