member

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName service.Name = "member"
)

Variables

This section is empty.

Functions

func ServiceProvider

func ServiceProvider(m Service) service.Provider

Types

type Service

type Service interface {
	GenerateCard(user *repository.User) (image.Image, error)
	EncodeUserID(img image.Image, id repository.UserID) (*bytes.Buffer, error)
	ValidateCard(img image.Image) (repository.UserID, error)
}

func From

func From(container *service.Container) (Service, error)

From retrieves the member service in the given service container

func Must

func Must(container *service.Container) Service

Must retrieves the member service in the given service container or panic otherwise

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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