25 lines
384 B
Go
25 lines
384 B
Go
|
package client
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"git.loafle.net/commons_go/rpc"
|
||
|
"git.loafle.net/commons_go/rpc/protocol"
|
||
|
)
|
||
|
|
||
|
type ClientHandler interface {
|
||
|
OnStart()
|
||
|
OnStop()
|
||
|
|
||
|
GetContentType() string
|
||
|
GetCodec() protocol.ClientCodec
|
||
|
GetRPCRegistry() rpc.Registry
|
||
|
GetRequestTimeout() time.Duration
|
||
|
GetPendingRequests() int
|
||
|
|
||
|
GetRequestID() interface{}
|
||
|
Validate()
|
||
|
|
||
|
addWrite(cs *CallState)
|
||
|
}
|