queryf

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 13 Imported by: 3

Documentation

Overview

Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from QueryF.tars Package queryf comment

Index

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 NewQueryF added in v1.4.5

func NewQueryF() *QueryF

NewQueryF creates a new QueryF servant.

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) Endpoints added in v1.4.1

func (obj *QueryF) Endpoints() []*endpoint.Endpoint

Endpoints returns all active endpoint.Endpoint

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

func (obj *QueryF) SetServant(servant model.Servant)

SetServant sets servant for the service.

func (*QueryF) TarsSetProtocol added in v1.2.0

func (obj *QueryF) TarsSetProtocol(p model.Protocol)

TarsSetProtocol sets the protocol for the servant.

func (*QueryF) TarsSetTimeout

func (obj *QueryF) TarsSetTimeout(timeout int)

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)
}

Jump to

Keyboard shortcuts

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