app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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

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

func NewBusiness

func NewBusiness(conf *conf.Config) *Business

func (*Business) CreateBusiness

CreateBusiness 创建业务配置信息

func (*Business) DeleteBusiness

DeleteBusiness 删除业务配置信息

func (*Business) ListBusiness

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

ListBusiness 获取业务配置信息列表

func (*Business) ListBusinessValue

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

func (*Business) UpdateBusiness

UpdateBusiness 更新业务配置信息

func (*Business) UpdateBusinessValue

UpdateBusinessValue 更新业务配置值信息

type Configure

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

func NewConfigure

func NewConfigure(conf *conf.Config) *Configure

func (*Configure) CompareConfigure

func (*Configure) GetConfigure

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

func (*Configure) UpdateConfigure

func (*Configure) WatchConfigure

type Env

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

func NewEnv

func NewEnv(conf *conf.Config) *Env

func (*Env) CreateEnv

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

CreateEnv 创建环境信息

func (*Env) DeleteEnv

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

DeleteEnv 删除环境信息

func (*Env) GetEnvToken

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

GetEnvToken 获取环境token

func (*Env) ListEnv

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

ListEnv 获取环境信息列表

func (*Env) ResetEnvToken

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

ResetEnvToken 重置token密码

func (*Env) UpdateEnv

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

UpdateEnv 更新环境信息

type Resource

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

func NewResource

func NewResource(conf *conf.Config) *Resource

func (*Resource) CreateResource

CreateResource 创建资源配置信息

func (*Resource) DeleteResource

DeleteResource 删除资源配置信息

func (*Resource) GetResource

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

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

func (*Resource) ListResource

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

ListResource 获取资源配置信息列表

func (*Resource) ListResourceValue

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

func (*Resource) UpdateResource

UpdateResource 更新资源配置信息

func (*Resource) UpdateResourceValue

UpdateResourceValue 更新业务配置值信息

type Server

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

func NewServer

func NewServer(conf *conf.Config) *Server

func (*Server) CreateServer

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

CreateServer 创建服务信息

func (*Server) DeleteServer

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

DeleteServer 删除服务信息

func (*Server) ListServer

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

ListServer 获取服务信息列表

func (*Server) UpdateServer

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

UpdateServer 更新服务信息

type Template

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

func NewTemplate

func NewTemplate(conf *conf.Config) *Template

func (*Template) CompareTemplate

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

func (*Template) CreateTemplate

func (*Template) CurrentTemplate

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

func (*Template) GetTemplate

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

func (*Template) ListTemplate

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

func (*Template) PreviewTemplate

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

func (*Template) SwitchTemplate

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

type User

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

func NewUser

func NewUser(conf *conf.Config) *User

func (*User) Login

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

func (*User) RefreshToken

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