Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + func MakeDefineProfileEndpoint(svc Service) endpoint.Endpoint + func MakeFetchProfileEndpoint(svc Service) endpoint.Endpoint + func MakeGetAccountInfoEndpoint(svc Service) endpoint.Endpoint + func MakeGetDeviceDetailsEndpoint(svc Service) endpoint.Endpoint + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + type DEPService struct + func New(client dep.Client, subscriber pubsub.Subscriber) *DEPService + func (svc *DEPService) DefineProfile(ctx context.Context, p *dep.Profile) (*dep.ProfileResponse, error) + func (svc *DEPService) FetchProfile(ctx context.Context, uuid string) (*dep.Profile, error) + func (svc *DEPService) GetAccountInfo(ctx context.Context) (*dep.Account, error) + func (svc *DEPService) GetDeviceDetails(ctx context.Context, serials []string) (*dep.DeviceDetailsResponse, error) + func (svc *DEPService) Run() error + type Endpoints struct + DefineProfileEndpoint endpoint.Endpoint + FetchProfileEndpoint endpoint.Endpoint + GetAccountInfoEndpoint endpoint.Endpoint + GetDeviceDetailsEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + func (e Endpoints) DefineProfile(ctx context.Context, p *dep.Profile) (*dep.ProfileResponse, error) + func (e Endpoints) FetchProfile(ctx context.Context, uuid string) (*dep.Profile, error) + func (e Endpoints) GetAccountInfo(ctx context.Context) (*dep.Account, error) + func (e Endpoints) GetDeviceDetails(ctx context.Context, serials []string) (*dep.DeviceDetailsResponse, error) + type Service interface + DefineProfile func(ctx context.Context, p *dep.Profile) (*dep.ProfileResponse, error) + FetchProfile func(ctx context.Context, uuid string) (*dep.Profile, error) + GetAccountInfo func(ctx context.Context) (*dep.Account, error) + GetDeviceDetails func(ctx context.Context, serials []string) (*dep.DeviceDetailsResponse, error) + func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error)