rpc

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcRequestData

type RpcRequestData struct {
	FromId       uint              `json:"fromId"`
	FromInfo     User              `json:"fromInfo"`
	Timestamp    int64             `json:"timestamp"`
	Type         string            `json:"type"`
	RequestType  string            `json:"request_type"`
	Path         string            `json:"path"`
	Params       map[string]any    `json:"params"`
	Headers      map[string]string `json:"headers"`
	ServerParams ServerParams      `json:"serverParams"`
}

type ServerParams

type ServerParams struct {
	RequestTime      uint64  `json:"request_time"`
	RequestTimeMilli float64 `json:"request_time_milli"`
	ServerProtocol   string  `json:"server_protocol"`
	RemoteAddr       string  `json:"remote_addr"`
	RemoteIp         string  `json:"remote_ip"`
	GatewayId        string  `json:"gateway_id"`
}

type User

type User struct {
	Id         uint   `json:"id"`
	Fd         uint64 `json:"fd"`
	Nickname   string `json:"nickname"`
	Phone      string `json:"phone"`
	Type       string `json:"type"`
	System     string `json:"system"`
	AuthGroups []int  `json:"auth_groups"`
}

Jump to

Keyboard shortcuts

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