1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-04 21:42:57 +02:00

rename Codec to Secrets (#1581)

This commit is contained in:
Asim Aslam
2020-04-27 14:57:57 +01:00
committed by GitHub
parent 434997e676
commit 83ab47333f
5 changed files with 35 additions and 29 deletions

View File

@ -18,8 +18,8 @@ type box struct {
privateKey [keyLength]byte
}
// NewCodec returns a nacl-box codec
func NewCodec(opts ...secrets.Option) secrets.Codec {
// NewSecrets returns a nacl-box codec
func NewSecrets(opts ...secrets.Option) secrets.Secrets {
b := &box{}
for _, o := range opts {
o(&b.options)