ichub_icd_general_srv_godb

package
v1.6.111 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_generaldb_proto protoreflect.FileDescriptor

Functions

func NewGeneraldbEndpoints

func NewGeneraldbEndpoints() []*api.Endpoint

func RegisterGeneraldbHandler

func RegisterGeneraldbHandler(s server.Server, hdlr GeneraldbHandler, opts ...server.HandlerOption) error

Types

type GeneraldbHandler

type GeneraldbHandler interface {
	Execute(context.Context, *GeneraldbRequest, *GeneraldbResult) error
}

type GeneraldbRequest

type GeneraldbRequest struct {
	MsgType    uint32 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` //db es nats
	CmdType    uint32 `protobuf:"varint,2,opt,name=cmdType,proto3" json:"cmdType,omitempty"`
	DbName     string `protobuf:"bytes,3,opt,name=dbName,proto3" json:"dbName,omitempty"`
	DbConnName string `protobuf:"bytes,4,opt,name=dbConnName,proto3" json:"dbConnName,omitempty"` // 第一个参数类型是string
	Data       string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`             // 第二个参数类型是int32
	// contains filtered or unexported fields
}

对于消息的定义 在nodejs里面,消息所定义的参数是存在一个数组里面的 所以定义的时候,需要给出参数的位置是比较科学的 注意:目前只针对于nodejs是这样存参数的,至于其他平台语言,不一定是这样的

func (*GeneraldbRequest) Descriptor deprecated

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

Deprecated: Use GeneraldbRequest.ProtoReflect.Descriptor instead.

func (*GeneraldbRequest) GetCmdType

func (x *GeneraldbRequest) GetCmdType() uint32

func (*GeneraldbRequest) GetData

func (x *GeneraldbRequest) GetData() string

func (*GeneraldbRequest) GetDbConnName

func (x *GeneraldbRequest) GetDbConnName() string

func (*GeneraldbRequest) GetDbName

func (x *GeneraldbRequest) GetDbName() string

func (*GeneraldbRequest) GetMsgType

func (x *GeneraldbRequest) GetMsgType() uint32

func (*GeneraldbRequest) ProtoMessage

func (*GeneraldbRequest) ProtoMessage()

func (*GeneraldbRequest) ProtoReflect

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

func (*GeneraldbRequest) Reset

func (x *GeneraldbRequest) Reset()

func (*GeneraldbRequest) String

func (x *GeneraldbRequest) String() string

type GeneraldbResult

type GeneraldbResult struct {
	Code     uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 第一个参数类型是string
	Msg      string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Total    uint32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Current  uint32 `protobuf:"varint,5,opt,name=current,proto3" json:"current,omitempty"`
	Data     string `protobuf:"bytes,6,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*GeneraldbResult) Descriptor deprecated

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

Deprecated: Use GeneraldbResult.ProtoReflect.Descriptor instead.

func (*GeneraldbResult) GetCode

func (x *GeneraldbResult) GetCode() uint32

func (*GeneraldbResult) GetCurrent

func (x *GeneraldbResult) GetCurrent() uint32

func (*GeneraldbResult) GetData

func (x *GeneraldbResult) GetData() string

func (*GeneraldbResult) GetMsg

func (x *GeneraldbResult) GetMsg() string

func (*GeneraldbResult) GetPageSize

func (x *GeneraldbResult) GetPageSize() uint32

func (*GeneraldbResult) GetTotal

func (x *GeneraldbResult) GetTotal() uint32

func (*GeneraldbResult) ProtoMessage

func (*GeneraldbResult) ProtoMessage()

func (*GeneraldbResult) ProtoReflect

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

func (*GeneraldbResult) Reset

func (x *GeneraldbResult) Reset()

func (*GeneraldbResult) String

func (x *GeneraldbResult) String() string

type GeneraldbService

type GeneraldbService interface {
	Execute(ctx context.Context, in *GeneraldbRequest, opts ...client.CallOption) (*GeneraldbResult, error)
}

func NewGeneraldbService

func NewGeneraldbService(name string, c client.Client) GeneraldbService

Jump to

Keyboard shortcuts

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