app

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *conf.Config, hs *http.Server, gs *grpc.Server)

Types

type Business added in v1.0.48

type Business struct {
	pb.UnimplementedBusinessServer
	// contains filtered or unexported fields
}

func NewBusiness added in v1.0.48

func NewBusiness(conf *conf.Config) *Business

func (*Business) CreateBusiness added in v1.0.48

CreateBusiness 创建业务配置信息

func (*Business) DeleteBusiness added in v1.0.48

DeleteBusiness 删除业务配置信息

func (*Business) ListBusiness added in v1.0.48

func (s *Business) ListBusiness(c context.Context, req *pb.ListBusinessRequest) (*pb.ListBusinessReply, error)

ListBusiness 获取业务配置信息列表

func (*Business) ListBusinessValue added in v1.0.48

ListBusinessValue 获取业务配置值信息列表

func (*Business) UpdateBusiness added in v1.0.48

UpdateBusiness 更新业务配置信息

func (*Business) UpdateBusinessValue added in v1.0.48

UpdateBusinessValue 更新业务配置值信息

type Configure added in v1.0.48

type Configure struct {
	pb.UnimplementedConfigureServer
	// contains filtered or unexported fields
}

func NewConfigure added in v1.0.48

func NewConfigure(conf *conf.Config) *Configure

func (*Configure) CompareConfigure added in v1.0.48

func (*Configure) GetConfigure added in v1.0.48

func (s *Configure) GetConfigure(ctx context.Context, in *pb.GetConfigureRequest) (*pb.GetConfigureReply, error)

func (*Configure) UpdateConfigure added in v1.0.48

func (*Configure) WatchConfigure added in v1.0.48

type Env added in v1.0.48

type Env struct {
	pb.UnimplementedEnvServer
	// contains filtered or unexported fields
}

func NewEnv added in v1.0.48

func NewEnv(conf *conf.Config) *Env

func (*Env) CreateEnv added in v1.0.48

func (app *Env) CreateEnv(c context.Context, req *pb.CreateEnvRequest) (*pb.CreateEnvReply, error)

CreateEnv 创建环境信息

func (*Env) DeleteEnv added in v1.0.48

func (app *Env) DeleteEnv(c context.Context, req *pb.DeleteEnvRequest) (*pb.DeleteEnvReply, error)

DeleteEnv 删除环境信息

func (*Env) GetEnvToken added in v1.0.48

func (app *Env) GetEnvToken(c context.Context, req *pb.GetEnvTokenRequest) (*pb.GetEnvTokenReply, error)

GetEnvToken 获取环境token

func (*Env) ListEnv added in v1.0.48

func (app *Env) ListEnv(c context.Context, req *pb.ListEnvRequest) (*pb.ListEnvReply, error)

ListEnv 获取环境信息列表

func (*Env) ResetEnvToken added in v1.0.48

func (app *Env) ResetEnvToken(c context.Context, req *pb.ResetEnvTokenRequest) (*pb.ResetEnvTokenReply, error)

ResetEnvToken 重置token密码

func (*Env) UpdateEnv added in v1.0.48

func (app *Env) UpdateEnv(c context.Context, req *pb.UpdateEnvRequest) (*pb.UpdateEnvReply, error)

UpdateEnv 更新环境信息

type Resource added in v1.0.48

type Resource struct {
	pb.UnimplementedResourceServer
	// contains filtered or unexported fields
}

func NewResource added in v1.0.48

func NewResource(conf *conf.Config) *Resource

func (*Resource) CreateResource added in v1.0.48

CreateResource 创建资源配置信息

func (*Resource) DeleteResource added in v1.0.48

DeleteResource 删除资源配置信息

func (*Resource) GetResource added in v1.0.48

func (s *Resource) GetResource(c context.Context, req *pb.GetResourceRequest) (*pb.GetResourceReply, error)

GetResource 获取指定的资源配置信息

func (*Resource) ListResource added in v1.0.48

func (s *Resource) ListResource(c context.Context, req *pb.ListResourceRequest) (*pb.ListResourceReply, error)

ListResource 获取资源配置信息列表

func (*Resource) ListResourceValue added in v1.0.48

ListResourceValue 获取业务配置值信息列表

func (*Resource) UpdateResource added in v1.0.48

UpdateResource 更新资源配置信息

func (*Resource) UpdateResourceValue added in v1.0.48

UpdateResourceValue 更新业务配置值信息

type Server added in v1.0.48

type Server struct {
	pb.UnimplementedServerServer
	// contains filtered or unexported fields
}

func NewServer added in v1.0.48

func NewServer(conf *conf.Config) *Server

func (*Server) CreateServer added in v1.0.48

func (s *Server) CreateServer(c context.Context, req *pb.CreateServerRequest) (*pb.CreateServerReply, error)

CreateServer 创建服务信息

func (*Server) DeleteServer added in v1.0.48

func (s *Server) DeleteServer(c context.Context, req *pb.DeleteServerRequest) (*pb.DeleteServerReply, error)

DeleteServer 删除服务信息

func (*Server) ListServer added in v1.0.48

func (s *Server) ListServer(c context.Context, req *pb.ListServerRequest) (*pb.ListServerReply, error)

ListServer 获取服务信息列表

func (*Server) UpdateServer added in v1.0.48

func (s *Server) UpdateServer(c context.Context, req *pb.UpdateServerRequest) (*pb.UpdateServerReply, error)

UpdateServer 更新服务信息

type Template added in v1.0.48

type Template struct {
	pb.UnimplementedTemplateServer
	// contains filtered or unexported fields
}

func NewTemplate added in v1.0.48

func NewTemplate(conf *conf.Config) *Template

func (*Template) CompareTemplate added in v1.0.48

func (s *Template) CompareTemplate(ctx context.Context, req *pb.CompareTemplateRequest) (*pb.CompareTemplateReply, error)

func (*Template) CreateTemplate added in v1.0.48

func (*Template) CurrentTemplate added in v1.0.48

func (s *Template) CurrentTemplate(ctx context.Context, req *pb.CurrentTemplateRequest) (*pb.CurrentTemplateReply, error)

func (*Template) GetTemplate added in v1.0.48

func (s *Template) GetTemplate(ctx context.Context, req *pb.GetTemplateRequest) (*pb.GetTemplateReply, error)

func (*Template) ListTemplate added in v1.0.48

func (s *Template) ListTemplate(ctx context.Context, req *pb.ListTemplateRequest) (*pb.ListTemplateReply, error)

func (*Template) PreviewTemplate added in v1.0.48

func (s *Template) PreviewTemplate(ctx context.Context, req *pb.PreviewTemplateRequest) (*pb.PreviewTemplateReply, error)

func (*Template) SwitchTemplate added in v1.0.48

func (s *Template) SwitchTemplate(ctx context.Context, req *pb.SwitchTemplateRequest) (*pb.SwitchTemplateReply, error)

type User added in v1.0.48

type User struct {
	pb.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUser added in v1.0.48

func NewUser(conf *conf.Config) *User

func (*User) Login added in v1.0.48

func (s *User) Login(ctx context.Context, in *pb.LoginRequest) (*pb.LoginReply, error)

func (*User) RefreshToken added in v1.0.48

func (s *User) RefreshToken(ctx context.Context, _ *pb.RefreshTokenRequest) (*pb.RefreshTokenReply, error)

Jump to

Keyboard shortcuts

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