Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireMessage ¶
func CloseCNClient ¶
func CloseCNClient() error
func GetRPCClient ¶ added in v0.8.0
func IsCNClientReady ¶
func IsCNClientReady() bool
func NewCNClient ¶
func NewCNClient( localServiceAddress string, cfg *ClientConfig) error
TODO: Here it needs to be refactored together with Runtime
Types ¶
type ClientConfig ¶
type ClientConfig struct {
// MaxSenderNumber is the max number of backends per host for compute node service.
MaxSenderNumber int
// TimeOutForEachConnect is the out time for each tcp connect.
TimeOutForEachConnect time.Duration
// related buffer size.
ReadBufferSize int
WriteBufferSize int
// RPC rpc config
RPC rpc.Config
}
ClientConfig a config to init a CNClient
func (*ClientConfig) Fill ¶
func (cfg *ClientConfig) Fill()
Fill set some default value for client config.
Click to show internal directories.
Click to hide internal directories.