feat(http): add document service to http Service

pull/16998/head
Lorenzo Affetti 2020-02-25 16:22:33 +01:00
parent 8d9e3550bd
commit 3171cf0656
No known key found for this signature in database
GPG Key ID: 76FFBBDF6F0ADC4C
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ type Service struct {
*UserService
*VariableService
*WriteService
DocumentService
}
// NewService returns a service that is an HTTP
@ -76,6 +77,7 @@ func NewService(addr, token string) (*Service, error) {
Addr: addr,
Token: token,
},
DocumentService: NewDocumentService(httpClient),
}, nil
}