boulder/rpc/rpc-interfaces.go

12 lines
258 B
Go

package rpc
// Client describes the functions an RPC Client performs
type Client interface {
DispatchSync(string, []byte) ([]byte, error)
}
// Server describes the functions an RPC Server performs
type Server interface {
Handle(string, messageHandler)
}