Nkey will set the public Nkey and the signature callback to sign the server nonce.
(pubKey string, sigCB SignatureHandler)
| 1470 | // Nkey will set the public Nkey and the signature callback to |
| 1471 | // sign the server nonce. |
| 1472 | func Nkey(pubKey string, sigCB SignatureHandler) Option { |
| 1473 | return func(o *Options) error { |
| 1474 | o.Nkey = pubKey |
| 1475 | o.SignatureCB = sigCB |
| 1476 | if pubKey != "" && sigCB == nil { |
| 1477 | return ErrNkeyButNoSigCB |
| 1478 | } |
| 1479 | return nil |
| 1480 | } |
| 1481 | } |
| 1482 | |
| 1483 | // SyncQueueLen will set the maximum queue len for the internal |
| 1484 | // channel used for SubscribeSync(). |
no outgoing calls
no test coverage detected