base

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_base_base_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Base

type Base struct {
	LogId      string            `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
	Caller     string            `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"`
	Addr       string            `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	Client     string            `protobuf:"bytes,4,opt,name=client,proto3" json:"client,omitempty"`
	TrafficEnv *TrafficEnv       `protobuf:"bytes,5,opt,name=traffic_env,json=trafficEnv,proto3" json:"traffic_env,omitempty"`
	Extra      map[string]string `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Base 基础请求信息

func (*Base) Descriptor deprecated

func (*Base) Descriptor() ([]byte, []int)

Deprecated: Use Base.ProtoReflect.Descriptor instead.

func (*Base) GetAddr

func (x *Base) GetAddr() string

func (*Base) GetCaller

func (x *Base) GetCaller() string

func (*Base) GetClient

func (x *Base) GetClient() string

func (*Base) GetExtra

func (x *Base) GetExtra() map[string]string

func (*Base) GetLogId

func (x *Base) GetLogId() string

func (*Base) GetTrafficEnv

func (x *Base) GetTrafficEnv() *TrafficEnv

func (*Base) ProtoMessage

func (*Base) ProtoMessage()

func (*Base) ProtoReflect

func (x *Base) ProtoReflect() protoreflect.Message

func (*Base) Reset

func (x *Base) Reset()

func (*Base) String

func (x *Base) String() string

type BaseResp

type BaseResp struct {
	StatusMessage string            `protobuf:"bytes,1,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	StatusCode    int32             `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	Extra         map[string]string `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

BaseResp 基础响应信息

func (*BaseResp) Descriptor deprecated

func (*BaseResp) Descriptor() ([]byte, []int)

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) GetExtra

func (x *BaseResp) GetExtra() map[string]string

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMessage

func (x *BaseResp) GetStatusMessage() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

func (x *BaseResp) ProtoReflect() protoreflect.Message

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) String

func (x *BaseResp) String() string

type EmptyData

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

EmptyData 空数据

func (*EmptyData) Descriptor deprecated

func (*EmptyData) Descriptor() ([]byte, []int)

Deprecated: Use EmptyData.ProtoReflect.Descriptor instead.

func (*EmptyData) ProtoMessage

func (*EmptyData) ProtoMessage()

func (*EmptyData) ProtoReflect

func (x *EmptyData) ProtoReflect() protoreflect.Message

func (*EmptyData) Reset

func (x *EmptyData) Reset()

func (*EmptyData) String

func (x *EmptyData) String() string

type EmptyReq

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

EmptyReq 空请求

func (*EmptyReq) Descriptor deprecated

func (*EmptyReq) Descriptor() ([]byte, []int)

Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead.

func (*EmptyReq) ProtoMessage

func (*EmptyReq) ProtoMessage()

func (*EmptyReq) ProtoReflect

func (x *EmptyReq) ProtoReflect() protoreflect.Message

func (*EmptyReq) Reset

func (x *EmptyReq) Reset()

func (*EmptyReq) String

func (x *EmptyReq) String() string

type EmptyResp

type EmptyResp struct {
	Code int64      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string     `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data *EmptyData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

EmptyResp 空响应

func (*EmptyResp) Descriptor deprecated

func (*EmptyResp) Descriptor() ([]byte, []int)

Deprecated: Use EmptyResp.ProtoReflect.Descriptor instead.

func (*EmptyResp) GetCode

func (x *EmptyResp) GetCode() int64

func (*EmptyResp) GetData

func (x *EmptyResp) GetData() *EmptyData

func (*EmptyResp) GetMsg

func (x *EmptyResp) GetMsg() string

func (*EmptyResp) ProtoMessage

func (*EmptyResp) ProtoMessage()

func (*EmptyResp) ProtoReflect

func (x *EmptyResp) ProtoReflect() protoreflect.Message

func (*EmptyResp) Reset

func (x *EmptyResp) Reset()

func (*EmptyResp) String

func (x *EmptyResp) String() string

type EmptyRpcReq

type EmptyRpcReq struct {
	Base *Base `protobuf:"bytes,255,opt,name=base,proto3" json:"base,omitempty"`
	// contains filtered or unexported fields
}

EmptyRpcReq RPC 空请求

func (*EmptyRpcReq) Descriptor deprecated

func (*EmptyRpcReq) Descriptor() ([]byte, []int)

Deprecated: Use EmptyRpcReq.ProtoReflect.Descriptor instead.

func (*EmptyRpcReq) GetBase

func (x *EmptyRpcReq) GetBase() *Base

func (*EmptyRpcReq) ProtoMessage

func (*EmptyRpcReq) ProtoMessage()

func (*EmptyRpcReq) ProtoReflect

func (x *EmptyRpcReq) ProtoReflect() protoreflect.Message

func (*EmptyRpcReq) Reset

func (x *EmptyRpcReq) Reset()

func (*EmptyRpcReq) String

func (x *EmptyRpcReq) String() string

type EmptyRpcResp

type EmptyRpcResp struct {
	BaseResp *BaseResp `protobuf:"bytes,255,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

EmptyRpcResp RPC 空响应

func (*EmptyRpcResp) Descriptor deprecated

func (*EmptyRpcResp) Descriptor() ([]byte, []int)

Deprecated: Use EmptyRpcResp.ProtoReflect.Descriptor instead.

func (*EmptyRpcResp) GetBaseResp

func (x *EmptyRpcResp) GetBaseResp() *BaseResp

func (*EmptyRpcResp) ProtoMessage

func (*EmptyRpcResp) ProtoMessage()

func (*EmptyRpcResp) ProtoReflect

func (x *EmptyRpcResp) ProtoReflect() protoreflect.Message

func (*EmptyRpcResp) Reset

func (x *EmptyRpcResp) Reset()

func (*EmptyRpcResp) String

func (x *EmptyRpcResp) String() string

type TrafficEnv

type TrafficEnv struct {
	Open bool   `protobuf:"varint,1,opt,name=open,proto3" json:"open,omitempty"`
	Env  string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"`
	// contains filtered or unexported fields
}

TrafficEnv 流量环境配置

func (*TrafficEnv) Descriptor deprecated

func (*TrafficEnv) Descriptor() ([]byte, []int)

Deprecated: Use TrafficEnv.ProtoReflect.Descriptor instead.

func (*TrafficEnv) GetEnv

func (x *TrafficEnv) GetEnv() string

func (*TrafficEnv) GetOpen

func (x *TrafficEnv) GetOpen() bool

func (*TrafficEnv) ProtoMessage

func (*TrafficEnv) ProtoMessage()

func (*TrafficEnv) ProtoReflect

func (x *TrafficEnv) ProtoReflect() protoreflect.Message

func (*TrafficEnv) Reset

func (x *TrafficEnv) Reset()

func (*TrafficEnv) String

func (x *TrafficEnv) String() string

Jump to

Keyboard shortcuts

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