registry

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 DeRegisterRes

type DeRegisterRes 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 NewDeRegisterRes

func NewDeRegisterRes() *DeRegisterRes

func (*DeRegisterRes) GetCode

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

func (*DeRegisterRes) GetMsg

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

func (*DeRegisterRes) InitDefault

func (p *DeRegisterRes) InitDefault()

func (*DeRegisterRes) SetCode

func (p *DeRegisterRes) SetCode(val int32)

func (*DeRegisterRes) SetMsg

func (p *DeRegisterRes) SetMsg(val string)

func (*DeRegisterRes) String

func (p *DeRegisterRes) String() string

type DeregisterReq

type DeregisterReq struct {
	ServiceId string `thrift:"service_id,1" frugal:"1,default,string" json:"service_id" query:"service_id,required"`
}

func NewDeregisterReq

func NewDeregisterReq() *DeregisterReq

func (*DeregisterReq) GetServiceId

func (p *DeregisterReq) GetServiceId() (v string)

func (*DeregisterReq) InitDefault

func (p *DeregisterReq) InitDefault()

func (*DeregisterReq) SetServiceId

func (p *DeregisterReq) SetServiceId(val string)

func (*DeregisterReq) String

func (p *DeregisterReq) String() string

type RegisterReq

type RegisterReq struct {
	ServiceId string `thrift:"service_id,1" frugal:"1,default,string" json:"service_id" query:"service_id,required"`
	Host      string `thrift:"host,2" frugal:"2,default,string" json:"host" query:"host,required"`
	Port      int32  `thrift:"port,3" frugal:"3,default,i32" json:"port" query:"port,required"`
}

func NewRegisterReq

func NewRegisterReq() *RegisterReq

func (*RegisterReq) GetHost

func (p *RegisterReq) GetHost() (v string)

func (*RegisterReq) GetPort

func (p *RegisterReq) GetPort() (v int32)

func (*RegisterReq) GetServiceId

func (p *RegisterReq) GetServiceId() (v string)

func (*RegisterReq) InitDefault

func (p *RegisterReq) InitDefault()

func (*RegisterReq) SetHost

func (p *RegisterReq) SetHost(val string)

func (*RegisterReq) SetPort

func (p *RegisterReq) SetPort(val int32)

func (*RegisterReq) SetServiceId

func (p *RegisterReq) SetServiceId(val string)

func (*RegisterReq) String

func (p *RegisterReq) String() string

type RegisterRes

type RegisterRes 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 NewRegisterRes

func NewRegisterRes() *RegisterRes

func (*RegisterRes) GetCode

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

func (*RegisterRes) GetMsg

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

func (*RegisterRes) InitDefault

func (p *RegisterRes) InitDefault()

func (*RegisterRes) SetCode

func (p *RegisterRes) SetCode(val int32)

func (*RegisterRes) SetMsg

func (p *RegisterRes) SetMsg(val string)

func (*RegisterRes) String

func (p *RegisterRes) String() string

type RegistryService

type RegistryService interface {
	Register(ctx context.Context, req *RegisterReq) (r *RegisterRes, err error)

	Deregister(ctx context.Context, req *DeregisterReq) (r *DeRegisterRes, err error)

	Update(ctx context.Context, req *UpdateReq) (r *UpdateRes, err error)
}

type UpdateReq

type UpdateReq struct {
	ServiceId string `thrift:"service_id,1" frugal:"1,default,string" json:"service_id" query:"service_id,required"`
}

func NewUpdateReq

func NewUpdateReq() *UpdateReq

func (*UpdateReq) GetServiceId

func (p *UpdateReq) GetServiceId() (v string)

func (*UpdateReq) InitDefault

func (p *UpdateReq) InitDefault()

func (*UpdateReq) SetServiceId

func (p *UpdateReq) SetServiceId(val string)

func (*UpdateReq) String

func (p *UpdateReq) String() string

type UpdateRes

type UpdateRes 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 NewUpdateRes

func NewUpdateRes() *UpdateRes

func (*UpdateRes) GetCode

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

func (*UpdateRes) GetMsg

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

func (*UpdateRes) InitDefault

func (p *UpdateRes) InitDefault()

func (*UpdateRes) SetCode

func (p *UpdateRes) SetCode(val int32)

func (*UpdateRes) SetMsg

func (p *UpdateRes) SetMsg(val string)

func (*UpdateRes) String

func (p *UpdateRes) String() string

Jump to

Keyboard shortcuts

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