Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnParams = grpc.ConnectParams{ Backoff: backoff.Config{ BaseDelay: time.Second * 1.0, Multiplier: 1.0, Jitter: 0, MaxDelay: 10 * time.Second, }, MinConnectTimeout: time.Second * 3, }
View Source
var Kacp = keepalive.ClientParameters{ Time: 10 * time.Second, Timeout: 3 * time.Second, PermitWithoutStream: true, }
grpc client params
Functions ¶
This section is empty.
Types ¶
type AppClient ¶
type AppClient struct { Builder *AppResolverBuilder Conn *grpc.ClientConn proto.DriverToAppServiceClient }
func NewAppRpcClient ¶
func NewAppRpcClient(builder *AppResolverBuilder) (*AppClient, error)
type AppClientCnnMap ¶
type AppResolverBuilder ¶
func (*AppResolverBuilder) Build ¶
func (e *AppResolverBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*AppResolverBuilder) Scheme ¶
func (*AppResolverBuilder) Scheme() string
type AppService ¶
type DPReportClient ¶
type DPReportClient struct { Conn *grpc.ClientConn proto.CommonClient proto.RpcEventClient }
func NewDPReportClient ¶
func NewDPReportClient(cfg config.ClientInfo) (*DPReportClient, error)
func (*DPReportClient) Close ¶
func (rdc *DPReportClient) Close() error
type NewCliFunc ¶
type NewCliFunc func() *DPReportClient
type OSSClientI ¶
type OSSClientI interface {
UploadFile(ctx context.Context, filename string, content []byte) (string, string, error)
}
func NewOSSClient ¶
func NewOSSClient(cfg *common.ResultNode, logger commons.TedgeLogger) (OSSClientI, error)
type ResourceClient ¶
type ResourceClient struct { Conn *grpc.ClientConn proto.CommonClient proto.RpcDeviceClient proto.RpcDeviceServiceClient proto.RpcProductClient proto.RpcEventClient proto.AlertReportServiceClient // alert proto.RpcGatewayForDeviceClient // gwinfo proto.RpcThingModelClient proto.DriverStorageClient // leveldb storage proto.ThingModelUpServiceClient proto.EventReportServiceClient // contains filtered or unexported fields }
func NewResourceClient ¶
func NewResourceClient(cfg config.ClientInfo) (*ResourceClient, error)
func (*ResourceClient) Close ¶
func (c *ResourceClient) Close() error
type TyModelReportClient ¶
type TyModelReportClient struct { Conn *grpc.ClientConn proto.CommonClient proto.ThingModelUpServiceClient }
func NewTyModelReportClient ¶
func NewTyModelReportClient(cfg config.ClientInfo) (*TyModelReportClient, error)
func (*TyModelReportClient) Close ¶
func (tmrc *TyModelReportClient) Close() error
Click to show internal directories.
Click to hide internal directories.