Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateToken ¶ added in v0.3.2
func NewCreateToken(response ocpirpc.CreateTokenResponse) *db.Token
Types ¶
type TokenResolver ¶
type TokenResolver struct { Repository token.TokenRepository OcpiService ocpi.Ocpi }
func NewResolver ¶
func NewResolver(repositoryService *db.RepositoryService) *TokenResolver
func NewResolverWithServices ¶
func NewResolverWithServices(repositoryService *db.RepositoryService, ocpiService ocpi.Ocpi) *TokenResolver
func (*TokenResolver) CreateToken ¶
func (r *TokenResolver) CreateToken(ctx context.Context, userID int64) (*ocpirpc.CreateTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.