repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicConfig

type BasicConfig struct {
	// contains filtered or unexported fields
}

BasicConfig - Basic implementation of Config Map with a backing map and convenience add method

func NewBasicConfig

func NewBasicConfig(category string) *BasicConfig

NewBasicConfig - Returns a basic implementation of a Config

func (*BasicConfig) AddEntry

func (config *BasicConfig) AddEntry(key string, value string)

AddEntry - Adds a new map entry

func (*BasicConfig) Category

func (config *BasicConfig) Category() string

Category - Returns the category name of this config (debug purposes only foreseen right now, hence no ID)

func (*BasicConfig) Values

func (config *BasicConfig) Values() map[string]string

Values - Returns the valuemap

type Config

type Config interface {
	Category() string
	Values() map[string]string
}

Config - Interface to map of string config values

type Repository

type Repository interface {
	Config() Config
	SetSession(Session)
	Session
}

Repository - Interface to access table CRUD methods, insert, update, etc...; Contains Config and Implements Session for DB types to reuse

type Session

type Session interface {
	Session() Session
}

Session - Interface to enable strategy to be set in library for communicating to DB...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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