services

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadServerConfig

func LoadServerConfig() (*common.ServerConfig, error)

LoadServerConfig 加载配置

func RunBillingAtBackground

func RunBillingAtBackground(billingPath, logFilePath string) error

RunBillingAtBackground 在后台运行程序

func ShowBuilderInfo added in v1.3.3

func ShowBuilderInfo(logger *zap.Logger)

ShowBuilderInfo 展示编译此项目的系统类型信息

func ShowVersionInfo

func ShowVersionInfo(logger *zap.Logger)

ShowVersionInfo 展示版本信息

Types

type PacketDataReader

type PacketDataReader struct {
	// contains filtered or unexported fields
}

PacketDataReader 用于读取[]byte数据的工具

func NewPacketDataReader

func NewPacketDataReader(binaryData []byte) *PacketDataReader

NewPacketDataReader 初始化读取[]byte数据的工具

func (*PacketDataReader) ReadByteValue

func (r *PacketDataReader) ReadByteValue() byte

ReadByteValue 读取一个字节

func (*PacketDataReader) ReadBytes

func (r *PacketDataReader) ReadBytes(n int) []byte

ReadBytes 读取一部分字节

func (*PacketDataReader) ReadInt

func (r *PacketDataReader) ReadInt() int

ReadInt 读取4个字节,转换为int

func (*PacketDataReader) ReadUint16

func (r *PacketDataReader) ReadUint16() uint16

ReadUint16 读取两个字节,转换为unit16

func (*PacketDataReader) Skip

func (r *PacketDataReader) Skip(n int)

Skip 跳过一部分字节

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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