protocol

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func NewConn

func NewConn(addr string, timeout time.Duration) *Conn

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Connect

func (c *Conn) Connect() error

func (*Conn) Login

func (c *Conn) Login(userID, password, options string) (*ResponseData, error)

func (*Conn) Logout

func (c *Conn) Logout() (*ResponseData, error)

func (*Conn) SendQuery

func (c *Conn) SendQuery(method string, params ...string) (*ResponseData, error)

type ResponseData

type ResponseData struct {
	MsgType       string
	MsgBodyLength string

	ErrorCode string
	ErrorMsg  string

	Method       string
	UserID       string
	CurPageNum   string
	PerPageCount string

	Fields []string
	Data   [][]string

	Code       string
	CodeName   string
	StartDate  string
	EndDate    string
	Frequency  string
	AdjustFlag string
	Year       string
	YearType   string
	Quarter    string
	Day        string
	Date       string
}

Jump to

Keyboard shortcuts

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