domain

package
v0.0.0-...-e555f51 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRepository

type CommandRepository interface {
	Add(ctx context.Context, command *Commmand) error
	Get(ctx context.Context, key string) (*Commmand, error)
	List(ctx context.Context, query string) ([]string, error)
}

Command repository

type CommandService

type CommandService interface {
	Add(ctx context.Context, command *Commmand) error
	Get(ctx context.Context, key string) (*Commmand, error)
	List(ctx context.Context, query string) ([]string, error)
}

Command service

type Commmand

type Commmand struct {
	Key  string
	Text string
}

Command entity

Jump to

Keyboard shortcuts

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