Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
//RepoCfg holds the configuration used for the repository.
RepoCfg repository.Config `yaml:"database"`
}
func (*Config) RegisterFlags ¶
type Option ¶
type Option func(*libraryServiceImpl) error
Option is an alias for a function that will take in a pointer to an libraryServiceImpl and modify it
func WithLogger ¶
WithLogger applies a given repository to the libraryServiceImpl
func WithMemoryRepository ¶
func WithMemoryRepository() Option
WithMemoryRepository applies a memory repository to the Option
func WithRepository ¶
func WithRepository(repo repository.Repository) Option
WithRepository applies a given repository to the libraryServiceImpl
type Service ¶
type Service interface {
service.Backend
librarypb.LibraryServiceServer
}
Service Project Service
func NewLibraryService ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package name deals with parsing and formatting resource names used in the Library API
|
Package name deals with parsing and formatting resource names used in the Library API |
Click to show internal directories.
Click to hide internal directories.