rpc

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_proto protoreflect.FileDescriptor

Functions

func RegisterDotConfigFaceServer

func RegisterDotConfigFaceServer(s *grpc.Server, srv DotConfigFaceServer)

Types

type DotConfigFaceClient

type DotConfigFaceClient interface {
	FindDot(ctx context.Context, in *FindReq, opts ...grpc.CallOption) (*FindRes, error)
	//文件导入
	ImportByConfig(ctx context.Context, in *ImportReq, opts ...grpc.CallOption) (*ImportRes, error)
	ImportByDot(ctx context.Context, in *ImportReq, opts ...grpc.CallOption) (*ImportRes, error)
	InitImport(ctx context.Context, in *ImportReq, opts ...grpc.CallOption) (*ImportRes, error)
	//导出文件
	ExportConfig(ctx context.Context, in *ExportReq, opts ...grpc.CallOption) (*ExportRes, error)
	ExportDot(ctx context.Context, in *ExportReq, opts ...grpc.CallOption) (*ExportRes, error)
}

DotConfigFaceClient is the client API for DotConfigFace service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DotConfigFaceServer

type DotConfigFaceServer interface {
	FindDot(context.Context, *FindReq) (*FindRes, error)
	//文件导入
	ImportByConfig(context.Context, *ImportReq) (*ImportRes, error)
	ImportByDot(context.Context, *ImportReq) (*ImportRes, error)
	InitImport(context.Context, *ImportReq) (*ImportRes, error)
	//导出文件
	ExportConfig(context.Context, *ExportReq) (*ExportRes, error)
	ExportDot(context.Context, *ExportReq) (*ExportRes, error)
}

DotConfigFaceServer is the server API for DotConfigFace service.

type ExportReq

type ExportReq struct {
	Configdata string   `protobuf:"bytes,1,opt,name=configdata,proto3" json:"configdata,omitempty"` //配置数据信息
	Filename   []string `protobuf:"bytes,2,rep,name=filename,proto3" json:"filename,omitempty"`     //导出的文件名
	Dotdata    string   `protobuf:"bytes,3,opt,name=dotdata,proto3" json:"dotdata,omitempty"`       //组件数据信息
	// contains filtered or unexported fields
}

exportfile

func (*ExportReq) Descriptor deprecated

func (*ExportReq) Descriptor() ([]byte, []int)

Deprecated: Use ExportReq.ProtoReflect.Descriptor instead.

func (*ExportReq) GetConfigdata

func (x *ExportReq) GetConfigdata() string

func (*ExportReq) GetDotdata

func (x *ExportReq) GetDotdata() string

func (*ExportReq) GetFilename

func (x *ExportReq) GetFilename() []string

func (*ExportReq) ProtoMessage

func (*ExportReq) ProtoMessage()

func (*ExportReq) ProtoReflect

func (x *ExportReq) ProtoReflect() protoreflect.Message

func (*ExportReq) Reset

func (x *ExportReq) Reset()

func (*ExportReq) String

func (x *ExportReq) String() string

type ExportRes

type ExportRes struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` //导出是否成功
	// contains filtered or unexported fields
}

func (*ExportRes) Descriptor deprecated

func (*ExportRes) Descriptor() ([]byte, []int)

Deprecated: Use ExportRes.ProtoReflect.Descriptor instead.

func (*ExportRes) GetError

func (x *ExportRes) GetError() string

func (*ExportRes) ProtoMessage

func (*ExportRes) ProtoMessage()

func (*ExportRes) ProtoReflect

func (x *ExportRes) ProtoReflect() protoreflect.Message

func (*ExportRes) Reset

func (x *ExportRes) Reset()

func (*ExportRes) String

func (x *ExportRes) String() string

type FindReq

type FindReq struct {
	Dirs []string `protobuf:"bytes,1,rep,name=dirs,proto3" json:"dirs,omitempty"` //目录集合
	// contains filtered or unexported fields
}

findDot

func (*FindReq) Descriptor deprecated

func (*FindReq) Descriptor() ([]byte, []int)

Deprecated: Use FindReq.ProtoReflect.Descriptor instead.

func (*FindReq) GetDirs

func (x *FindReq) GetDirs() []string

func (*FindReq) ProtoMessage

func (*FindReq) ProtoMessage()

func (*FindReq) ProtoReflect

func (x *FindReq) ProtoReflect() protoreflect.Message

func (*FindReq) Reset

func (x *FindReq) Reset()

func (*FindReq) String

func (x *FindReq) String() string

type FindRes

type FindRes struct {
	DotsInfo    string   `protobuf:"bytes,1,opt,name=dotsInfo,proto3" json:"dotsInfo,omitempty"`       //组件信息(json)
	NoExistDirs []string `protobuf:"bytes,2,rep,name=noExistDirs,proto3" json:"noExistDirs,omitempty"` //不存在的目录集合
	Error       string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`             //错误信息
	// contains filtered or unexported fields
}

func (*FindRes) Descriptor deprecated

func (*FindRes) Descriptor() ([]byte, []int)

Deprecated: Use FindRes.ProtoReflect.Descriptor instead.

func (*FindRes) GetDotsInfo

func (x *FindRes) GetDotsInfo() string

func (*FindRes) GetError

func (x *FindRes) GetError() string

func (*FindRes) GetNoExistDirs

func (x *FindRes) GetNoExistDirs() []string

func (*FindRes) ProtoMessage

func (*FindRes) ProtoMessage()

func (*FindRes) ProtoReflect

func (x *FindRes) ProtoReflect() protoreflect.Message

func (*FindRes) Reset

func (x *FindRes) Reset()

func (*FindRes) String

func (x *FindRes) String() string

type ImportReq

type ImportReq struct {
	Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"` //导入文件的路径
	// contains filtered or unexported fields
}

importfile

func (*ImportReq) Descriptor deprecated

func (*ImportReq) Descriptor() ([]byte, []int)

Deprecated: Use ImportReq.ProtoReflect.Descriptor instead.

func (*ImportReq) GetFilepath

func (x *ImportReq) GetFilepath() string

func (*ImportReq) ProtoMessage

func (*ImportReq) ProtoMessage()

func (*ImportReq) ProtoReflect

func (x *ImportReq) ProtoReflect() protoreflect.Message

func (*ImportReq) Reset

func (x *ImportReq) Reset()

func (*ImportReq) String

func (x *ImportReq) String() string

type ImportRes

type ImportRes struct {
	Json  string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`   //返回导入文件的内容
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` //导入出错
	// contains filtered or unexported fields
}

func (*ImportRes) Descriptor deprecated

func (*ImportRes) Descriptor() ([]byte, []int)

Deprecated: Use ImportRes.ProtoReflect.Descriptor instead.

func (*ImportRes) GetError

func (x *ImportRes) GetError() string

func (*ImportRes) GetJson

func (x *ImportRes) GetJson() string

func (*ImportRes) ProtoMessage

func (*ImportRes) ProtoMessage()

func (*ImportRes) ProtoReflect

func (x *ImportRes) ProtoReflect() protoreflect.Message

func (*ImportRes) Reset

func (x *ImportRes) Reset()

func (*ImportRes) String

func (x *ImportRes) String() string

type UnimplementedDotConfigFaceServer

type UnimplementedDotConfigFaceServer struct {
}

UnimplementedDotConfigFaceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDotConfigFaceServer) ExportConfig

func (*UnimplementedDotConfigFaceServer) ExportDot

func (*UnimplementedDotConfigFaceServer) FindDot

func (*UnimplementedDotConfigFaceServer) ImportByConfig

func (*UnimplementedDotConfigFaceServer) ImportByDot

func (*UnimplementedDotConfigFaceServer) InitImport

Jump to

Keyboard shortcuts

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