prime

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	SignUp(ctx context.Context, user data.User) ctxerr.Error
	SignIn(ctx context.Context, data data.Auth) (model.User, *access.Token, int64, ctxerr.Error)
	SignOut(ctx context.Context, refresh access.SyncToken) ctxerr.Error
	ObtainAccess(ctx context.Context, refresh access.SyncToken) (model.Access, *access.SyncToken, int64, ctxerr.Error)
}

Service abstracts the main service.

func Use

func Use(usrSrvc user.Service, acsSrvc access.Service) Service

Use returns a Service implementation wich uses the proviced user.Service and access.Service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL