backend

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dtalk.backend.Generator",
	HandlerType: (*GeneratorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVersion",
			Handler:    _Generator_CreateVersion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

Generator_ServiceDesc is the grpc.ServiceDesc for Generator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGeneratorServer

func RegisterGeneratorServer(s grpc.ServiceRegistrar, srv GeneratorServer)

Types

type ChangeStatusReply

type ChangeStatusReply struct {
	Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeStatusReply) Descriptor deprecated

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

Deprecated: Use ChangeStatusReply.ProtoReflect.Descriptor instead.

func (*ChangeStatusReply) GetNum

func (x *ChangeStatusReply) GetNum() int64

func (*ChangeStatusReply) ProtoMessage

func (*ChangeStatusReply) ProtoMessage()

func (*ChangeStatusReply) ProtoReflect

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

func (*ChangeStatusReply) Reset

func (x *ChangeStatusReply) Reset()

func (*ChangeStatusReply) String

func (x *ChangeStatusReply) String() string

type ChangeStatusRequest

type ChangeStatusRequest struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status     int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	DeviceType string `protobuf:"bytes,3,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeStatusRequest) Descriptor deprecated

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

Deprecated: Use ChangeStatusRequest.ProtoReflect.Descriptor instead.

func (*ChangeStatusRequest) GetDeviceType

func (x *ChangeStatusRequest) GetDeviceType() string

func (*ChangeStatusRequest) GetId

func (x *ChangeStatusRequest) GetId() int64

func (*ChangeStatusRequest) GetStatus

func (x *ChangeStatusRequest) GetStatus() int32

func (*ChangeStatusRequest) ProtoMessage

func (*ChangeStatusRequest) ProtoMessage()

func (*ChangeStatusRequest) ProtoReflect

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

func (*ChangeStatusRequest) Reset

func (x *ChangeStatusRequest) Reset()

func (*ChangeStatusRequest) String

func (x *ChangeStatusRequest) String() string

type CheckAndUpdateReply

type CheckAndUpdateReply struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Platform    string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	Status      int32  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	DeviceType  string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	VersionCode string `protobuf:"bytes,5,opt,name=version_code,json=versionCode,proto3" json:"version_code,omitempty"`
	Url         string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
	Force       int32  `protobuf:"varint,7,opt,name=force,proto3" json:"force,omitempty"`
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	OpeUser     string `protobuf:"bytes,9,opt,name=ope_user,json=opeUser,proto3" json:"ope_user,omitempty"`
	UpdateTime  int64  `protobuf:"varint,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	CreateTime  int64  `protobuf:"varint,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckAndUpdateReply) Descriptor deprecated

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

Deprecated: Use CheckAndUpdateReply.ProtoReflect.Descriptor instead.

func (*CheckAndUpdateReply) GetCreateTime

func (x *CheckAndUpdateReply) GetCreateTime() int64

func (*CheckAndUpdateReply) GetDescription

func (x *CheckAndUpdateReply) GetDescription() string

func (*CheckAndUpdateReply) GetDeviceType

func (x *CheckAndUpdateReply) GetDeviceType() string

func (*CheckAndUpdateReply) GetForce

func (x *CheckAndUpdateReply) GetForce() int32

func (*CheckAndUpdateReply) GetId

func (x *CheckAndUpdateReply) GetId() int64

func (*CheckAndUpdateReply) GetOpeUser

func (x *CheckAndUpdateReply) GetOpeUser() string

func (*CheckAndUpdateReply) GetPlatform

func (x *CheckAndUpdateReply) GetPlatform() string

func (*CheckAndUpdateReply) GetStatus

func (x *CheckAndUpdateReply) GetStatus() int32

func (*CheckAndUpdateReply) GetUpdateTime

func (x *CheckAndUpdateReply) GetUpdateTime() int64

func (*CheckAndUpdateReply) GetUrl

func (x *CheckAndUpdateReply) GetUrl() string

func (*CheckAndUpdateReply) GetVersionCode

func (x *CheckAndUpdateReply) GetVersionCode() string

func (*CheckAndUpdateReply) ProtoMessage

func (*CheckAndUpdateReply) ProtoMessage()

func (*CheckAndUpdateReply) ProtoReflect

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

func (*CheckAndUpdateReply) Reset

func (x *CheckAndUpdateReply) Reset()

func (*CheckAndUpdateReply) String

func (x *CheckAndUpdateReply) String() string

type CheckAndUpdateRequest

type CheckAndUpdateRequest struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DeviceType string `protobuf:"bytes,2,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckAndUpdateRequest) Descriptor deprecated

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

Deprecated: Use CheckAndUpdateRequest.ProtoReflect.Descriptor instead.

func (*CheckAndUpdateRequest) GetDeviceType

func (x *CheckAndUpdateRequest) GetDeviceType() string

func (*CheckAndUpdateRequest) GetId

func (x *CheckAndUpdateRequest) GetId() int64

func (*CheckAndUpdateRequest) ProtoMessage

func (*CheckAndUpdateRequest) ProtoMessage()

func (*CheckAndUpdateRequest) ProtoReflect

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

func (*CheckAndUpdateRequest) Reset

func (x *CheckAndUpdateRequest) Reset()

func (*CheckAndUpdateRequest) String

func (x *CheckAndUpdateRequest) String() string

type CreateReply

type CreateReply struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateReply) Descriptor deprecated

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

Deprecated: Use CreateReply.ProtoReflect.Descriptor instead.

func (*CreateReply) GetId

func (x *CreateReply) GetId() int64

func (*CreateReply) ProtoMessage

func (*CreateReply) ProtoMessage()

func (*CreateReply) ProtoReflect

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

func (*CreateReply) Reset

func (x *CreateReply) Reset()

func (*CreateReply) String

func (x *CreateReply) String() string

type CreateRequest

type CreateRequest struct {
	Platform    string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Force       int32  `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
	Url         string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	VersionCode string `protobuf:"bytes,5,opt,name=version_code,json=versionCode,proto3" json:"version_code,omitempty"`
	VersionName string `protobuf:"bytes,6,opt,name=version_name,json=versionName,proto3" json:"version_name,omitempty"`
	DeviceType  string `protobuf:"bytes,7,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetDescription

func (x *CreateRequest) GetDescription() string

func (*CreateRequest) GetDeviceType

func (x *CreateRequest) GetDeviceType() string

func (*CreateRequest) GetForce

func (x *CreateRequest) GetForce() int32

func (*CreateRequest) GetPlatform

func (x *CreateRequest) GetPlatform() string

func (*CreateRequest) GetUrl

func (x *CreateRequest) GetUrl() string

func (*CreateRequest) GetVersionCode

func (x *CreateRequest) GetVersionCode() string

func (*CreateRequest) GetVersionName

func (x *CreateRequest) GetVersionName() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type GeneratorClient

type GeneratorClient interface {
	CreateVersion(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
}

GeneratorClient is the client API for Generator service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewGeneratorClient

func NewGeneratorClient(cc grpc.ClientConnInterface) GeneratorClient

type GeneratorServer

type GeneratorServer interface {
	CreateVersion(context.Context, *CreateRequest) (*CreateReply, error)
	// contains filtered or unexported methods
}

GeneratorServer is the server API for Generator service. All implementations must embed UnimplementedGeneratorServer for forward compatibility

type UnimplementedGeneratorServer

type UnimplementedGeneratorServer struct {
}

UnimplementedGeneratorServer must be embedded to have forward compatible implementations.

func (UnimplementedGeneratorServer) CreateVersion

type UnsafeGeneratorServer

type UnsafeGeneratorServer interface {
	// contains filtered or unexported methods
}

UnsafeGeneratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GeneratorServer will result in compilation errors.

type UpdateReply

type UpdateReply struct {
	Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReply) Descriptor deprecated

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

Deprecated: Use UpdateReply.ProtoReflect.Descriptor instead.

func (*UpdateReply) GetNum

func (x *UpdateReply) GetNum() int64

func (*UpdateReply) ProtoMessage

func (*UpdateReply) ProtoMessage()

func (*UpdateReply) ProtoReflect

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

func (*UpdateReply) Reset

func (x *UpdateReply) Reset()

func (*UpdateReply) String

func (x *UpdateReply) String() string

type UpdateRequest

type UpdateRequest struct {
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Force       int32  `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	Url         string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	VersionCode string `protobuf:"bytes,4,opt,name=version_code,json=versionCode,proto3" json:"version_code,omitempty"`
	VersionName string `protobuf:"bytes,5,opt,name=version_name,json=versionName,proto3" json:"version_name,omitempty"`
	Id          int64  `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetDescription

func (x *UpdateRequest) GetDescription() string

func (*UpdateRequest) GetForce

func (x *UpdateRequest) GetForce() int32

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() int64

func (*UpdateRequest) GetUrl

func (x *UpdateRequest) GetUrl() string

func (*UpdateRequest) GetVersionCode

func (x *UpdateRequest) GetVersionCode() string

func (*UpdateRequest) GetVersionName

func (x *UpdateRequest) GetVersionName() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

Jump to

Keyboard shortcuts

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