code: func NewAPI(fileStore *storage.FileStore, dns Resolver, feedHandler *feed.Handler, pk *ecdsa.PrivateKey) (self *API) {
  	self = &API{
  		fileStore: fileStore,
  		dns:       dns,
  		feed:      feedHandler,
  		Decryptor: func(ctx context.Context, credentials string) DecryptFunc {
  			return self.doDecrypt(ctx, credentials, pk)
  		},
  	}
  	return
  }
docs: // NewAPI the api constructor initialises a new API instance.