Documentation
¶
Index ¶
- func Server(socketName, password, authKey, name string, idleTimeout time.Duration) error
- type RequestProcessorClient
- func (s *RequestProcessorClient) Decrypt(data string) (string, error)
- func (s *RequestProcessorClient) Encrypt(data string) (string, error)
- func (s *RequestProcessorClient) Init(password, name string) (string, error)
- func (s *RequestProcessorClient) Login(password, authKey, name string) error
- func (s *RequestProcessorClient) Ping() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestProcessorClient ¶
type RequestProcessorClient struct {
// contains filtered or unexported fields
}
RequestProcessorClient wraps the connection to the rpc server
func NewRequestProcessorClient ¶
func NewRequestProcessorClient(network, address, name string) (*RequestProcessorClient, error)
NewRequestProcessorClient creates a new client to the encrypt/decrypt agent
func (*RequestProcessorClient) Decrypt ¶
func (s *RequestProcessorClient) Decrypt(data string) (string, error)
Decrypt a block of data
func (*RequestProcessorClient) Encrypt ¶
func (s *RequestProcessorClient) Encrypt(data string) (string, error)
Encrypt a block of data
func (*RequestProcessorClient) Init ¶
func (s *RequestProcessorClient) Init(password, name string) (string, error)
Init sets up the server with the given password
func (*RequestProcessorClient) Login ¶
func (s *RequestProcessorClient) Login(password, authKey, name string) error
Login validates the password with the authKey
Click to show internal directories.
Click to hide internal directories.