module_model

package
v0.0.0-...-6dc645d Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleProjectI

type ModuleProjectI interface {
	AddFunc(ctx context.Context, funcObj routes.FuncGroup) error
	AddRoute(ctx context.Context, routeObj routes.Route) error
	CompareProject(ctx context.Context, compareProject Project) (StoreCompare, error)
}

type Project

type Project struct {
	ProjectId     string                      `eru:"required"`
	Routes        map[string]routes.Route     `eru:"required"`
	FuncGroups    map[string]routes.FuncGroup `eru:"required"`
	ProjectConfig ProjectConfig
	Authorizers   map[string]routes.Authorizer
}

func (*Project) AddFunc

func (prj *Project) AddFunc(ctx context.Context, funcObj routes.FuncGroup) error

func (*Project) AddRoute

func (prj *Project) AddRoute(ctx context.Context, routeObj routes.Route) error

func (*Project) CompareProject

func (prj *Project) CompareProject(ctx context.Context, compareProject Project) (StoreCompare, error)

type ProjectConfig

type ProjectConfig struct {
	//AesKey         AesKey
	TokenSecret routes.TokenSecret
}

type StoreCompare

type StoreCompare struct {
	DeleteRoutes   []string
	NewRoutes      []string
	MismatchRoutes map[string]interface{}
	DeleteFuncs    []string
	NewFuncs       []string
	MismatchFuncs  map[string]interface{}
}

Jump to

Keyboard shortcuts

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