authConfig

package
v0.0.0-...-0d755fc Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Key   string `bson:"key"`
	Value string `bson:"value"`
}

type Repository

type Repository interface {
	CreateConfig(config AuthConfig) error
	GetConfig(key string) (*AuthConfig, error)
	UpdateConfig(ctx context.Context, key string, value interface{}) error
}

func NewAuthConfigRepo

func NewAuthConfigRepo(collection *mongo.Collection) Repository

NewAuthConfigRepo creates a new instance of this repository

Jump to

Keyboard shortcuts

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