testService

package
v0.0.0-...-54d1621 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failing

type Failing struct{}

Failing is a mocked struct that always returns an error.

func (Failing) CreateToken

func (s Failing) CreateToken(ctx context.Context, userID string) (string, error)

func (Failing) VerifyToken

func (s Failing) VerifyToken(ctx context.Context, token string) (model.Claims, error)

type Ok

type Ok struct{}

Ok is a mocked struct that runs without throwing any errors.

func (Ok) CreateToken

func (s Ok) CreateToken(ctx context.Context, userID string) (string, error)

func (Ok) VerifyToken

func (s Ok) VerifyToken(ctx context.Context, token string) (model.Claims, error)

Jump to

Keyboard shortcuts

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