Documentation
¶
Overview ¶
Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from QueryF.tars Package queryf comment
Index ¶
- type QueryF
- func (obj *QueryF) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, ...) (err error)
- func (obj *QueryF) Endpoints() []*endpoint.Endpoint
- func (obj *QueryF) FindObjectById(id string, opts ...map[string]string) ([]endpointf.EndpointF, error)
- func (obj *QueryF) FindObjectById4All(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, ...) (int32, error)
- func (obj *QueryF) FindObjectById4AllOneWayWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectById4AllWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectById4Any(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, ...) (int32, error)
- func (obj *QueryF) FindObjectById4AnyOneWayWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectById4AnyWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdInSameGroup(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, ...) (int32, error)
- func (obj *QueryF) FindObjectByIdInSameGroupOneWayWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdInSameGroupWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdInSameSet(id string, setId string, activeEp *[]endpointf.EndpointF, ...) (int32, error)
- func (obj *QueryF) FindObjectByIdInSameSetOneWayWithContext(tarsCtx context.Context, id string, setId string, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdInSameSetWithContext(tarsCtx context.Context, id string, setId string, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdInSameStation(id string, sStation string, activeEp *[]endpointf.EndpointF, ...) (int32, error)
- func (obj *QueryF) FindObjectByIdInSameStationOneWayWithContext(tarsCtx context.Context, id string, sStation string, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdInSameStationWithContext(tarsCtx context.Context, id string, sStation string, ...) (ret int32, err error)
- func (obj *QueryF) FindObjectByIdOneWayWithContext(tarsCtx context.Context, id string, opts ...map[string]string) (ret []endpointf.EndpointF, err error)
- func (obj *QueryF) FindObjectByIdWithContext(tarsCtx context.Context, id string, opts ...map[string]string) (ret []endpointf.EndpointF, err error)
- func (obj *QueryF) SetServant(servant model.Servant)
- func (obj *QueryF) TarsSetProtocol(p model.Protocol)
- func (obj *QueryF) TarsSetTimeout(timeout int)
- type QueryFServant
- type QueryFServantWithContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryF ¶
type QueryF struct {
// contains filtered or unexported fields
}
QueryF struct
func (*QueryF) Dispatch ¶
func (obj *QueryF) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, tarsResp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implement for the method defined in the tars file. withContext shows using context or not.
func (*QueryF) FindObjectById ¶
func (obj *QueryF) FindObjectById(id string, opts ...map[string]string) ([]endpointf.EndpointF, error)
FindObjectById is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectById4All ¶
func (obj *QueryF) FindObjectById4All(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (int32, error)
FindObjectById4All is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectById4AllOneWayWithContext ¶ added in v1.2.0
func (obj *QueryF) FindObjectById4AllOneWayWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectById4AllOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectById4AllWithContext ¶
func (obj *QueryF) FindObjectById4AllWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectById4AllWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectById4Any ¶
func (obj *QueryF) FindObjectById4Any(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (int32, error)
FindObjectById4Any is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectById4AnyOneWayWithContext ¶ added in v1.2.0
func (obj *QueryF) FindObjectById4AnyOneWayWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectById4AnyOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectById4AnyWithContext ¶
func (obj *QueryF) FindObjectById4AnyWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectById4AnyWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameGroup ¶
func (obj *QueryF) FindObjectByIdInSameGroup(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (int32, error)
FindObjectByIdInSameGroup is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameGroupOneWayWithContext ¶ added in v1.2.0
func (obj *QueryF) FindObjectByIdInSameGroupOneWayWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectByIdInSameGroupOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameGroupWithContext ¶
func (obj *QueryF) FindObjectByIdInSameGroupWithContext(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectByIdInSameGroupWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameSet ¶
func (obj *QueryF) FindObjectByIdInSameSet(id string, setId string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (int32, error)
FindObjectByIdInSameSet is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameSetOneWayWithContext ¶ added in v1.2.0
func (obj *QueryF) FindObjectByIdInSameSetOneWayWithContext(tarsCtx context.Context, id string, setId string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectByIdInSameSetOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameSetWithContext ¶
func (obj *QueryF) FindObjectByIdInSameSetWithContext(tarsCtx context.Context, id string, setId string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectByIdInSameSetWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameStation ¶
func (obj *QueryF) FindObjectByIdInSameStation(id string, sStation string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (int32, error)
FindObjectByIdInSameStation is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameStationOneWayWithContext ¶ added in v1.2.0
func (obj *QueryF) FindObjectByIdInSameStationOneWayWithContext(tarsCtx context.Context, id string, sStation string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectByIdInSameStationOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdInSameStationWithContext ¶
func (obj *QueryF) FindObjectByIdInSameStationWithContext(tarsCtx context.Context, id string, sStation string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF, opts ...map[string]string) (ret int32, err error)
FindObjectByIdInSameStationWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdOneWayWithContext ¶ added in v1.2.0
func (obj *QueryF) FindObjectByIdOneWayWithContext(tarsCtx context.Context, id string, opts ...map[string]string) (ret []endpointf.EndpointF, err error)
FindObjectByIdOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) FindObjectByIdWithContext ¶
func (obj *QueryF) FindObjectByIdWithContext(tarsCtx context.Context, id string, opts ...map[string]string) (ret []endpointf.EndpointF, err error)
FindObjectByIdWithContext is the proxy function for the method defined in the tars file, with the context
func (*QueryF) SetServant ¶
SetServant sets servant for the service.
func (*QueryF) TarsSetProtocol ¶ added in v1.2.0
TarsSetProtocol sets the protocol for the servant.
func (*QueryF) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type QueryFServant ¶ added in v1.3.0
type QueryFServant interface { FindObjectById(id string) (ret []endpointf.EndpointF, err error) FindObjectById4Any(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectById4All(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectByIdInSameGroup(id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectByIdInSameStation(id string, sStation string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectByIdInSameSet(id string, setId string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) }
type QueryFServantWithContext ¶ added in v1.3.0
type QueryFServantWithContext interface { FindObjectById(tarsCtx context.Context, id string) (ret []endpointf.EndpointF, err error) FindObjectById4Any(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectById4All(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectByIdInSameGroup(tarsCtx context.Context, id string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectByIdInSameStation(tarsCtx context.Context, id string, sStation string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) FindObjectByIdInSameSet(tarsCtx context.Context, id string, setId string, activeEp *[]endpointf.EndpointF, inactiveEp *[]endpointf.EndpointF) (ret int32, err error) }