Modify sp and services to use the protobuf module

This commit is contained in:
mitchell 2019-07-11 21:02:46 -04:00
parent 66ec035ee0
commit 4fc74b0994
23 changed files with 59 additions and 1025 deletions

View file

@ -8,14 +8,14 @@ import (
"github.com/mitchell/selfpass/services/credentials/types"
)
func NewCredentials(repo types.CredentialRepo) Credentials {
func NewCredentials(repo types.CredentialsRepo) Credentials {
return Credentials{
repo: repo,
}
}
type Credentials struct {
repo types.CredentialRepo
repo types.CredentialsRepo
}
func (svc Credentials) GetAllMetadata(ctx context.Context, sourceHost string) (output <-chan types.Metadata, errch chan error) {