rpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(target string, service string) resolver.Builder

NewResolver return resolver builder target example: "http://127.0.0.1:2379,http://127.0.0.1:12379,http://127.0.0.1:22379" service is service name

Types

type EngineClient

type EngineClient struct {
	AppID       string
	AppSecret   string
	DiscoverUrl string
	// contains filtered or unexported fields
}

func NewEngineClient

func NewEngineClient(appID, appSecret, discoverUrl string) *EngineClient

func (*EngineClient) InitEngineClient

func (engine *EngineClient) InitEngineClient() error

func (*EngineClient) Predict

func (engine *EngineClient) Predict(netFlag string, image []byte) (string, error)

type ProcessorClient

type ProcessorClient struct {
	AppID       string
	AppSecret   string
	DiscoverUrl string
	// contains filtered or unexported fields
}

func NewProcessorClient

func NewProcessorClient(appID, appSecret, discoverUrl string) *ProcessorClient

func (*ProcessorClient) InitProcessorClient

func (processor *ProcessorClient) InitProcessorClient() error

func (*ProcessorClient) Process

func (processor *ProcessorClient) Process(netFlag string, image []byte) ([]string, error)

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

resolver is the implementaion of grpc.resolve.Builder

func (*Resolver) Build

Build to resolver.Resolver

func (*Resolver) Close

func (r *Resolver) Close()

Close

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(rn resolver.ResolveNowOption)

ResolveNow

func (*Resolver) Scheme

func (r *Resolver) Scheme() string

Scheme return etcdv3 schema

Directories

Path Synopsis
toad_ocr_engine
idl
toad_ocr_preprocessor
idl

Jump to

Keyboard shortcuts

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