What would you like to be added
type Options struct {
Database string
ValueDir string
BadgerFileLoadingMode string
BadgerIsOpenInReadOnlyMode bool // <- add this option, corresponding helper function for the option and set badger.Options.ReadOnly = true
}
Why this is needed
I am implementing a simple ocsp responder that read from step-ca badgerdb and needs to open it in readonly mode since step-ca server is opening badgerdb in rw mode, the db cannot be open by other process with rw mode since I am using github.com/smallstep/nosql library to interact with step-ca badgerdb
I can open a PR to add the option if it is ok
What would you like to be added
Why this is needed
I am implementing a simple ocsp responder that read from step-ca badgerdb and needs to open it in readonly mode since step-ca server is opening badgerdb in rw mode, the db cannot be open by other process with rw mode since I am using
github.com/smallstep/nosqllibrary to interact with step-ca badgerdbI can open a PR to add the option if it is ok