service

package
v0.0.0-...-62716b9 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("endpoint not implemented")
)

Application errors These can then be remaped to transport-specific errors in the transport layer (gRPC, HTTP, AMQP ...)

Functions

This section is empty.

Types

type User

type User interface {
	// Create will create a new user and return it.
	Create(ctx context.Context, username string, email string) (user *UserEntity, err error)
}

User documentation is automatically added to the README.

type UserEntity

type UserEntity struct {
	ID    string
	Name  string
	Email string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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