snapshot

package
v0.0.0-...-1ceb281 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_snapshot_proto protoreflect.FileDescriptor
View Source
var NewSnapshotClientProxy = func(opts ...client.Option) SnapshotClientProxy {
	return &SnapshotClientProxyImpl{client: client.DefaultClient, opts: opts}
}
View Source
var SnapshotServer_ServiceDesc = server.ServiceDesc{
	ServiceName: "trpc.media.snapshot.Snapshot",
	HandlerType: ((*SnapshotService)(nil)),
	Methods: []server.Method{
		{
			Name: "/CreateSnapshot",
			Func: SnapshotService_CreateSnapshot_Handler,
		},
		{
			Name: "/DescribeSnapshotData",
			Func: SnapshotService_DescribeSnapshotData_Handler,
		},
		{
			Name: "/UpdateSnapshot",
			Func: SnapshotService_UpdateSnapshot_Handler,
		},
		{
			Name: "/trpc.media.snapshot.Snapshot/CreateSnapshot",
			Func: SnapshotService_CreateSnapshot_Handler,
		},
		{
			Name: "/trpc.media.snapshot.Snapshot/DescribeSnapshotData",
			Func: SnapshotService_DescribeSnapshotData_Handler,
		},
		{
			Name: "/trpc.media.snapshot.Snapshot/UpdateSnapshot",
			Func: SnapshotService_UpdateSnapshot_Handler,
		},
	},
}

SnapshotServer_ServiceDesc descriptor for server.RegisterService.

Functions

func RegisterSnapshotService

func RegisterSnapshotService(s server.Service, svr SnapshotService)

RegisterSnapshotService registers service.

func SnapshotService_CreateSnapshot_Handler

func SnapshotService_CreateSnapshot_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)

func SnapshotService_DescribeSnapshotData_Handler

func SnapshotService_DescribeSnapshotData_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)

func SnapshotService_UpdateSnapshot_Handler

func SnapshotService_UpdateSnapshot_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)

Types

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	TaskId    string `protobuf:"bytes,2,opt,name=TaskId,proto3" json:"TaskId,omitempty"`
	FlowId    string `protobuf:"bytes,3,opt,name=FlowId,proto3" json:"FlowId,omitempty"`
	ApiModule string `protobuf:"bytes,4,opt,name=ApiModule,proto3" json:"ApiModule,omitempty"`
	Priority  int32  `protobuf:"varint,6,opt,name=Priority,proto3" json:"Priority,omitempty"`
	IsSync    bool   `protobuf:"varint,7,opt,name=IsSync,proto3" json:"IsSync,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSnapshotRequest) Descriptor deprecated

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

Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.

func (*CreateSnapshotRequest) GetApiModule

func (x *CreateSnapshotRequest) GetApiModule() string

func (*CreateSnapshotRequest) GetFlowId

func (x *CreateSnapshotRequest) GetFlowId() string

func (*CreateSnapshotRequest) GetIsSync

func (x *CreateSnapshotRequest) GetIsSync() bool

func (*CreateSnapshotRequest) GetPriority

func (x *CreateSnapshotRequest) GetPriority() int32

func (*CreateSnapshotRequest) GetRequestId

func (x *CreateSnapshotRequest) GetRequestId() string

func (*CreateSnapshotRequest) GetTaskId

func (x *CreateSnapshotRequest) GetTaskId() string

func (*CreateSnapshotRequest) ProtoMessage

func (*CreateSnapshotRequest) ProtoMessage()

func (*CreateSnapshotRequest) ProtoReflect

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

func (*CreateSnapshotRequest) Reset

func (x *CreateSnapshotRequest) Reset()

func (*CreateSnapshotRequest) String

func (x *CreateSnapshotRequest) String() string

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	RequestId string `protobuf:"bytes,1,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	Error     *Error `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	TaskData  string `protobuf:"bytes,3,opt,name=TaskData,proto3" json:"TaskData,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSnapshotResponse) Descriptor deprecated

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

Deprecated: Use CreateSnapshotResponse.ProtoReflect.Descriptor instead.

func (*CreateSnapshotResponse) GetError

func (x *CreateSnapshotResponse) GetError() *Error

func (*CreateSnapshotResponse) GetRequestId

func (x *CreateSnapshotResponse) GetRequestId() string

func (*CreateSnapshotResponse) GetTaskData

func (x *CreateSnapshotResponse) GetTaskData() string

func (*CreateSnapshotResponse) ProtoMessage

func (*CreateSnapshotResponse) ProtoMessage()

func (*CreateSnapshotResponse) ProtoReflect

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

func (*CreateSnapshotResponse) Reset

func (x *CreateSnapshotResponse) Reset()

func (*CreateSnapshotResponse) String

func (x *CreateSnapshotResponse) String() string

type DescribeSnapshotRequest

type DescribeSnapshotRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	FlowId    string `protobuf:"bytes,2,opt,name=FlowId,proto3" json:"FlowId,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeSnapshotRequest) Descriptor deprecated

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

Deprecated: Use DescribeSnapshotRequest.ProtoReflect.Descriptor instead.

func (*DescribeSnapshotRequest) GetFlowId

func (x *DescribeSnapshotRequest) GetFlowId() string

func (*DescribeSnapshotRequest) GetRequestId

func (x *DescribeSnapshotRequest) GetRequestId() string

func (*DescribeSnapshotRequest) ProtoMessage

func (*DescribeSnapshotRequest) ProtoMessage()

func (*DescribeSnapshotRequest) ProtoReflect

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

func (*DescribeSnapshotRequest) Reset

func (x *DescribeSnapshotRequest) Reset()

func (*DescribeSnapshotRequest) String

func (x *DescribeSnapshotRequest) String() string

type DescribeSnapshotResponse

type DescribeSnapshotResponse struct {
	RequestId string `protobuf:"bytes,1,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	Error     *Error `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	FlowId    string `protobuf:"bytes,3,opt,name=FlowId,proto3" json:"FlowId,omitempty"`
	Content   string `protobuf:"bytes,6,opt,name=Content,proto3" json:"Content,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeSnapshotResponse) Descriptor deprecated

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

Deprecated: Use DescribeSnapshotResponse.ProtoReflect.Descriptor instead.

func (*DescribeSnapshotResponse) GetContent

func (x *DescribeSnapshotResponse) GetContent() string

func (*DescribeSnapshotResponse) GetError

func (x *DescribeSnapshotResponse) GetError() *Error

func (*DescribeSnapshotResponse) GetFlowId

func (x *DescribeSnapshotResponse) GetFlowId() string

func (*DescribeSnapshotResponse) GetRequestId

func (x *DescribeSnapshotResponse) GetRequestId() string

func (*DescribeSnapshotResponse) ProtoMessage

func (*DescribeSnapshotResponse) ProtoMessage()

func (*DescribeSnapshotResponse) ProtoReflect

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

func (*DescribeSnapshotResponse) Reset

func (x *DescribeSnapshotResponse) Reset()

func (*DescribeSnapshotResponse) String

func (x *DescribeSnapshotResponse) String() string

type Error

type Error struct {
	Code    string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() string

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type SnapshotClientProxy

type SnapshotClientProxy interface {
	CreateSnapshot(ctx context.Context, req *CreateSnapshotRequest, opts ...client.Option) (rsp *CreateSnapshotResponse, err error) // @alias=/CreateSnapshot

	DescribeSnapshotData(ctx context.Context, req *DescribeSnapshotRequest, opts ...client.Option) (rsp *DescribeSnapshotResponse, err error) // @alias=/DescribeSnapshotData

	UpdateSnapshot(ctx context.Context, req *UpdateSnapshotRequest, opts ...client.Option) (rsp *UpdateSnapshotResponse, err error) // @alias=/UpdateSnapshot
}

SnapshotClientProxy defines service client proxy

type SnapshotClientProxyImpl

type SnapshotClientProxyImpl struct {
	// contains filtered or unexported fields
}

func (*SnapshotClientProxyImpl) CreateSnapshot

func (*SnapshotClientProxyImpl) DescribeSnapshotData

func (*SnapshotClientProxyImpl) UpdateSnapshot

type SnapshotService

type SnapshotService interface {
	CreateSnapshot(ctx context.Context, req *CreateSnapshotRequest, rsp *CreateSnapshotResponse) (err error) // @alias=/CreateSnapshot

	DescribeSnapshotData(ctx context.Context, req *DescribeSnapshotRequest, rsp *DescribeSnapshotResponse) (err error) // @alias=/DescribeSnapshotData

	UpdateSnapshot(ctx context.Context, req *UpdateSnapshotRequest, rsp *UpdateSnapshotResponse) (err error) // @alias=/UpdateSnapshot
}

SnapshotService defines service.

type UnimplementedSnapshot

type UnimplementedSnapshot struct{}

func (*UnimplementedSnapshot) CreateSnapshot

func (*UnimplementedSnapshot) DescribeSnapshotData

func (*UnimplementedSnapshot) UpdateSnapshot

type UpdateSnapshotRequest

type UpdateSnapshotRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	TaskId    string `protobuf:"bytes,2,opt,name=TaskId,proto3" json:"TaskId,omitempty"`
	FlowId    string `protobuf:"bytes,3,opt,name=FlowId,proto3" json:"FlowId,omitempty"`
	ApiModule string `protobuf:"bytes,4,opt,name=ApiModule,proto3" json:"ApiModule,omitempty"`
	Priority  int32  `protobuf:"varint,6,opt,name=Priority,proto3" json:"Priority,omitempty"`
	IsSync    bool   `protobuf:"varint,7,opt,name=IsSync,proto3" json:"IsSync,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSnapshotRequest) Descriptor deprecated

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

Deprecated: Use UpdateSnapshotRequest.ProtoReflect.Descriptor instead.

func (*UpdateSnapshotRequest) GetApiModule

func (x *UpdateSnapshotRequest) GetApiModule() string

func (*UpdateSnapshotRequest) GetFlowId

func (x *UpdateSnapshotRequest) GetFlowId() string

func (*UpdateSnapshotRequest) GetIsSync

func (x *UpdateSnapshotRequest) GetIsSync() bool

func (*UpdateSnapshotRequest) GetPriority

func (x *UpdateSnapshotRequest) GetPriority() int32

func (*UpdateSnapshotRequest) GetRequestId

func (x *UpdateSnapshotRequest) GetRequestId() string

func (*UpdateSnapshotRequest) GetTaskId

func (x *UpdateSnapshotRequest) GetTaskId() string

func (*UpdateSnapshotRequest) ProtoMessage

func (*UpdateSnapshotRequest) ProtoMessage()

func (*UpdateSnapshotRequest) ProtoReflect

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

func (*UpdateSnapshotRequest) Reset

func (x *UpdateSnapshotRequest) Reset()

func (*UpdateSnapshotRequest) String

func (x *UpdateSnapshotRequest) String() string

type UpdateSnapshotResponse

type UpdateSnapshotResponse struct {
	RequestId string `protobuf:"bytes,1,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	Error     *Error `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSnapshotResponse) Descriptor deprecated

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

Deprecated: Use UpdateSnapshotResponse.ProtoReflect.Descriptor instead.

func (*UpdateSnapshotResponse) GetError

func (x *UpdateSnapshotResponse) GetError() *Error

func (*UpdateSnapshotResponse) GetRequestId

func (x *UpdateSnapshotResponse) GetRequestId() string

func (*UpdateSnapshotResponse) ProtoMessage

func (*UpdateSnapshotResponse) ProtoMessage()

func (*UpdateSnapshotResponse) ProtoReflect

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

func (*UpdateSnapshotResponse) Reset

func (x *UpdateSnapshotResponse) Reset()

func (*UpdateSnapshotResponse) String

func (x *UpdateSnapshotResponse) String() string

Jump to

Keyboard shortcuts

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