services

package
v0.0.0-...-36b45d8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommand

func ParseCommand(commandText string) *models.Command

func ProcessCommand

func ProcessCommand(command *models.Command, userRepo repo.UserRepo) (*models.CommandResponse, error)

Types

type CommandService

type CommandService interface {
	GetCommandResponse(command string, user string) (*models.CommandResponse, error)
}

func NewCommandService

func NewCommandService(
	userRepo repo.UserRepo,
) CommandService

type Ping

type Ping interface {
	Get() string
}

func NewPing

func NewPing() Ping

type PingService

type PingService struct{}

func (*PingService) Get

func (*PingService) Get() string

type Token

type Token string

Token defines a token for our application

type TokenService

type TokenService interface {
	ProcessUserLogin(username string, password string) (string, error)
}

TokenService provides a token

func NewTokenService

func NewTokenService(
	userRepo repo.UserRepo,
) TokenService

NewTokenService creates a new UserService

Jump to

Keyboard shortcuts

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