organization

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CompanyIdentification string
}

type MockRepository

type MockRepository struct {
	Config *client.OrganizationConfiguration
	Err    error
}

func (*MockRepository) GetConfig

func (*MockRepository) UpdateConfig

type Repository

type Repository interface {
	GetConfig(orgID string) (*client.OrganizationConfiguration, error)
	UpdateConfig(orgID string, cfg *client.OrganizationConfiguration) (*client.OrganizationConfiguration, error)
}

func NewRepo

func NewRepo(db *sql.DB) Repository

type Router

type Router struct {
	GetConfig    http.HandlerFunc
	UpdateConfig http.HandlerFunc
}

func NewRouter

func NewRouter(orgRepo Repository) *Router

func (*Router) RegisterRoutes

func (router *Router) RegisterRoutes(r *mux.Router)

Jump to

Keyboard shortcuts

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