Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialerFunc ¶
type DialerFunc func() (io.ReadWriteCloser, error)
type Request ¶ added in v1.0.2
type Request struct { ServiceMethod string // format: "Service.Method" Seq uint64 // sequence number chosen by client Next *Request // for free list in Server }
Request is a header written before every RPC call. It is used internally but documented here as an aid to debugging, such as when analyzing network traffic.
type Response ¶ added in v1.0.2
type Response struct { ServiceMethod string // echoes that of the Request Seq uint64 // echoes that of the request Error string // error, if any. Next *Response // for free list in Server }
Response is a header written before every RPC return. It is used internally but documented here as an aid to debugging, such as when analyzing network traffic.
type Server ¶
type Server interface { AddCert(cert []byte) Accept(lis net.Listener) Register(rcvr any) error RegisterName(name string, rcvr any) error ServeCodec(codec ServerCodec) ServeConn(conn io.ReadWriteCloser) ServeRequest(codec ServerCodec) error }
type ServerCodec ¶ added in v1.0.2
type ServerFinalizer ¶ added in v1.0.2
type ServerMiddleware ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.