[client:client] created public signatures 'Send(io.Writer) error' and 'Receive(io.Reader) error'

This commit is contained in:
xdrm-brackets 2018-04-22 01:25:17 +02:00
parent 2454751812
commit 09d514d5b9
1 changed files with 23 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package client; package client;
import ( import (
"io"
"git.xdrm.io/schastsp/context" "git.xdrm.io/schastsp/context"
"git.xdrm.io/schastsp/client/keyset" "git.xdrm.io/schastsp/client/keyset"
) )
@ -47,3 +48,24 @@ func New(ctx *context.T, saveDir string) (*T, error) {
return inst, nil; return inst, nil;
} }
/* (3) Processes and sends a new request
*
* @w<io.Writer> Writer to send into
*
* @return err<error> Error
*
---------------------------------------------------------*/
func (c *T) Send(w io.Writer) error { return nil }
/* (4) Receives and processes a response
*
* @w<io.Reader> Reader to receive from
*
* @return err<error> Error
*
---------------------------------------------------------*/
func (c *T) Receive(r io.Reader) error { return nil }