base

package
v0.0.0-...-8010d25 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseService

type BaseService interface {
	Ping(ctx context.Context, req *PingReq) (r *PingRes, err error)
}

type PingReq

type PingReq struct {
}

func NewPingReq

func NewPingReq() *PingReq

func (*PingReq) InitDefault

func (p *PingReq) InitDefault()

func (*PingReq) String

func (p *PingReq) String() string

type PingRes

type PingRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewPingRes

func NewPingRes() *PingRes

func (*PingRes) GetCode

func (p *PingRes) GetCode() (v int32)

func (*PingRes) GetMsg

func (p *PingRes) GetMsg() (v string)

func (*PingRes) InitDefault

func (p *PingRes) InitDefault()

func (*PingRes) SetCode

func (p *PingRes) SetCode(val int32)

func (*PingRes) SetMsg

func (p *PingRes) SetMsg(val string)

func (*PingRes) String

func (p *PingRes) String() string

Jump to

Keyboard shortcuts

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