Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadJSONPayload = errors.New("bad json payload") ErrResponseBadSignature = errors.New("bad response signature") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SelfID string DeviceID string PrivateKey ed25519.PrivateKey Rest restTransport KeyID string Messaging messagingClient PKI pkiClient FileInteractor remoteFile }
Config stores all configuration needed by the messaging service
type InputObject ¶
type Response ¶
type Response struct { Signature string SignedObjects []SignedObject `json:"signed_objects"` Status string `json:"status"` }
type Service ¶
type Service struct { URL string // contains filtered or unexported fields }
Service handles all messaging operations
func NewService ¶
NewService creates a new client for interacting with messaging
func (*Service) RequestSignature ¶
func (s *Service) RequestSignature(recipient string, body string, objects []InputObject) (Response, error)
RequestSignature sends a signature request to the specified user.
type SignedObject ¶
Click to show internal directories.
Click to hide internal directories.