projects

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	ProjectsX *Service
}

func (*Controller) DeployNats added in v0.2.1

func (x *Controller) DeployNats(ctx context.Context, c *app.RequestContext)

func (*Controller) GetTenants added in v0.2.1

func (x *Controller) GetTenants(ctx context.Context, c *app.RequestContext)

type DeployNatsDto added in v0.2.1

type DeployNatsDto struct {
	Id primitive.ObjectID `json:"id" vd:"required"`
}

type GetTenantsDto added in v0.2.1

type GetTenantsDto struct {
	Id string `path:"id" vd:"mongodb"`
}

type M added in v0.2.1

type M = map[string]interface{}

type NatsAccount added in v0.2.1

type NatsAccount struct {
	Name  string
	Users []NatsUser
}

type NatsUser added in v0.2.1

type NatsUser struct {
	Nkey string
}

type Service

type Service struct {
	*common.Inject
	ClustersX *clusters.Service
}

func (*Service) DeployNats added in v0.2.1

func (x *Service) DeployNats(ctx context.Context, id primitive.ObjectID) (err error)

func (*Service) Get added in v0.2.1

func (x *Service) Get(ctx context.Context, id primitive.ObjectID) (data model.Project, err error)

func (*Service) GetTenants added in v0.2.1

func (x *Service) GetTenants(ctx context.Context, id primitive.ObjectID) (result M, err error)

func (*Service) MakeNatsAccount added in v0.2.1

func (x *Service) MakeNatsAccount(ctx context.Context, project model.Project) (err error)

func (*Service) SyncNatsAccounts added in v0.2.1

func (x *Service) SyncNatsAccounts(ctx context.Context, project model.Project, accounts *[]NatsAccount) (err error)

Jump to

Keyboard shortcuts

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