server_pb

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Unpack_Unpack_FullMethodName = "/unpack.v1.server.Unpack/Unpack"
)

Variables

View Source
var (
	UnpackResponse_ContractQueueResponse_ContractQueueStatus_name = map[int32]string{
		0: "CQR_UNKNOWN",
		1: "CQR_FOUND",
		3: "CQR_ERROR",
	}
	UnpackResponse_ContractQueueResponse_ContractQueueStatus_value = map[string]int32{
		"CQR_UNKNOWN": 0,
		"CQR_FOUND":   1,
		"CQR_ERROR":   3,
	}
)

Enum value maps for UnpackResponse_ContractQueueResponse_ContractQueueStatus.

View Source
var File_server_parameters_proto protoreflect.FileDescriptor
View Source
var File_server_server_proto protoreflect.FileDescriptor
View Source
var Unpack_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "unpack.v1.server.Unpack",
	HandlerType: (*UnpackServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Unpack",
			Handler:    _Unpack_Unpack_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server/server.proto",
}

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

Functions

func RegisterUnpackServer added in v0.2.8

func RegisterUnpackServer(s grpc.ServiceRegistrar, srv UnpackServer)

Types

type UnimplementedUnpackServer added in v0.2.8

type UnimplementedUnpackServer struct {
}

UnimplementedUnpackServer must be embedded to have forward compatible implementations.

func (UnimplementedUnpackServer) Unpack added in v0.2.8

type UnpackClient added in v0.2.8

type UnpackClient interface {
	Unpack(ctx context.Context, in *UnpackRequest, opts ...grpc.CallOption) (*UnpackResponse, error)
}

UnpackClient is the client API for Unpack 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 NewUnpackClient added in v0.2.8

func NewUnpackClient(cc grpc.ClientConnInterface) UnpackClient

type UnpackRequest added in v0.2.8

type UnpackRequest struct {

	// Identifier for the blockchain chain.
	NetworkId int64 `protobuf:"varint,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Address associated with the transaction.
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

Represents a contract request message with details about a transaction.

func (*UnpackRequest) Descriptor deprecated added in v0.2.8

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

Deprecated: Use UnpackRequest.ProtoReflect.Descriptor instead.

func (*UnpackRequest) GetAddresses added in v0.2.8

func (x *UnpackRequest) GetAddresses() []string

func (*UnpackRequest) GetNetworkId added in v0.2.8

func (x *UnpackRequest) GetNetworkId() int64

func (*UnpackRequest) ProtoMessage added in v0.2.8

func (*UnpackRequest) ProtoMessage()

func (*UnpackRequest) ProtoReflect added in v0.2.8

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

func (*UnpackRequest) Reset added in v0.2.8

func (x *UnpackRequest) Reset()

func (*UnpackRequest) String added in v0.2.8

func (x *UnpackRequest) String() string

type UnpackResponse added in v0.2.8

type UnpackResponse struct {

	// Status of the transaction.
	Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// Identifier for the blockchain chain.
	NetworkId int64                                   `protobuf:"varint,2,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	Contracts []*UnpackResponse_ContractQueueResponse `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty"`
	// contains filtered or unexported fields
}

Represents a contract response message with details about a transaction.

func (*UnpackResponse) Descriptor deprecated added in v0.2.8

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

Deprecated: Use UnpackResponse.ProtoReflect.Descriptor instead.

func (*UnpackResponse) GetContracts added in v0.2.8

func (*UnpackResponse) GetNetworkId added in v0.2.8

func (x *UnpackResponse) GetNetworkId() int64

func (*UnpackResponse) GetStatus added in v0.2.8

func (x *UnpackResponse) GetStatus() bool

func (*UnpackResponse) ProtoMessage added in v0.2.8

func (*UnpackResponse) ProtoMessage()

func (*UnpackResponse) ProtoReflect added in v0.2.8

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

func (*UnpackResponse) Reset added in v0.2.8

func (x *UnpackResponse) Reset()

func (*UnpackResponse) String added in v0.2.8

func (x *UnpackResponse) String() string

type UnpackResponse_ContractQueueResponse added in v0.2.8

type UnpackResponse_ContractQueueResponse struct {
	Status   UnpackResponse_ContractQueueResponse_ContractQueueStatus `` /* 145-byte string literal not displayed */
	Contract *contracts.Contract                                      `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	Error    string                                                   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UnpackResponse_ContractQueueResponse) Descriptor deprecated added in v0.2.8

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

Deprecated: Use UnpackResponse_ContractQueueResponse.ProtoReflect.Descriptor instead.

func (*UnpackResponse_ContractQueueResponse) GetContract added in v0.3.3

func (*UnpackResponse_ContractQueueResponse) GetError added in v0.2.8

func (*UnpackResponse_ContractQueueResponse) GetStatus added in v0.2.8

func (*UnpackResponse_ContractQueueResponse) ProtoMessage added in v0.2.8

func (*UnpackResponse_ContractQueueResponse) ProtoMessage()

func (*UnpackResponse_ContractQueueResponse) ProtoReflect added in v0.2.8

func (*UnpackResponse_ContractQueueResponse) Reset added in v0.2.8

func (*UnpackResponse_ContractQueueResponse) String added in v0.2.8

type UnpackResponse_ContractQueueResponse_ContractQueueStatus added in v0.2.8

type UnpackResponse_ContractQueueResponse_ContractQueueStatus int32
const (
	UnpackResponse_ContractQueueResponse_CQR_UNKNOWN UnpackResponse_ContractQueueResponse_ContractQueueStatus = 0
	UnpackResponse_ContractQueueResponse_CQR_FOUND   UnpackResponse_ContractQueueResponse_ContractQueueStatus = 1
	UnpackResponse_ContractQueueResponse_CQR_ERROR   UnpackResponse_ContractQueueResponse_ContractQueueStatus = 3
)

func (UnpackResponse_ContractQueueResponse_ContractQueueStatus) Descriptor added in v0.2.8

func (UnpackResponse_ContractQueueResponse_ContractQueueStatus) Enum added in v0.2.8

func (UnpackResponse_ContractQueueResponse_ContractQueueStatus) EnumDescriptor deprecated added in v0.2.8

Deprecated: Use UnpackResponse_ContractQueueResponse_ContractQueueStatus.Descriptor instead.

func (UnpackResponse_ContractQueueResponse_ContractQueueStatus) Number added in v0.2.8

func (UnpackResponse_ContractQueueResponse_ContractQueueStatus) String added in v0.2.8

func (UnpackResponse_ContractQueueResponse_ContractQueueStatus) Type added in v0.2.8

type UnpackServer added in v0.2.8

type UnpackServer interface {
	Unpack(context.Context, *UnpackRequest) (*UnpackResponse, error)
	// contains filtered or unexported methods
}

UnpackServer is the server API for Unpack service. All implementations must embed UnimplementedUnpackServer for forward compatibility

type UnsafeUnpackServer added in v0.2.8

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

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

Jump to

Keyboard shortcuts

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