Joe Cantwell
04/23/2024, 11:34 AMcrb, err := cerbos.New(c.CerbosAPI, cerbos.WithPlaintext())
I’m wondering if I can instantiate this in main and treat the *cerbos.GRPCClient
pointer as a singleton (add it to my handler struct) or would it be better to instantiate it prior to each call to IsAllowed
or whatever ( which makes testing a bit tricker)?oguzhan
cerbos.New
and re-using it more than once is OK, and recommended.