scripts

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scripts_iop_proto protoreflect.FileDescriptor
View Source
var IOP_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "IOP",
	HandlerType: (*IOPServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InvokePermittedMethod",
			Handler:    _IOP_InvokePermittedMethod_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "getPermittedNetworkInfo",
			Handler:       _IOP_GetPermittedNetworkInfo_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "getPermittedMethodsList",
			Handler:       _IOP_GetPermittedMethodsList_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "scripts/iop.proto",
}

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

Functions

func RegisterIOPServer

func RegisterIOPServer(s grpc.ServiceRegistrar, srv IOPServer)

Types

type IOPClient

type IOPClient interface {
	GetPermittedNetworkInfo(ctx context.Context, in *PermittedNetworkAddress, opts ...grpc.CallOption) (IOP_GetPermittedNetworkInfoClient, error)
	InvokePermittedMethod(ctx context.Context, in *MethodInfo, opts ...grpc.CallOption) (*MethodResponse, error)
	GetPermittedMethodsList(ctx context.Context, in *PermittedNetworkId, opts ...grpc.CallOption) (IOP_GetPermittedMethodsListClient, error)
}

IOPClient is the client API for IOP 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 NewIOPClient

func NewIOPClient(cc grpc.ClientConnInterface) IOPClient

type IOPServer

type IOPServer interface {
	GetPermittedNetworkInfo(*PermittedNetworkAddress, IOP_GetPermittedNetworkInfoServer) error
	InvokePermittedMethod(context.Context, *MethodInfo) (*MethodResponse, error)
	GetPermittedMethodsList(*PermittedNetworkId, IOP_GetPermittedMethodsListServer) error
	// contains filtered or unexported methods
}

IOPServer is the server API for IOP service. All implementations must embed UnimplementedIOPServer for forward compatibility

type IOP_GetPermittedMethodsListClient

type IOP_GetPermittedMethodsListClient interface {
	Recv() (*MethodInfo, error)
	grpc.ClientStream
}

type IOP_GetPermittedMethodsListServer

type IOP_GetPermittedMethodsListServer interface {
	Send(*MethodInfo) error
	grpc.ServerStream
}

type IOP_GetPermittedNetworkInfoClient

type IOP_GetPermittedNetworkInfoClient interface {
	Recv() (*PermittedNetworkInfo, error)
	grpc.ClientStream
}

type IOP_GetPermittedNetworkInfoServer

type IOP_GetPermittedNetworkInfoServer interface {
	Send(*PermittedNetworkInfo) error
	grpc.ServerStream
}

type MethodInfo

type MethodInfo struct {

	// Exposed Method Info
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MethodInput   string `protobuf:"bytes,2,opt,name=method_input,json=methodInput,proto3" json:"method_input,omitempty"`
	MethodOutput  string `protobuf:"bytes,3,opt,name=method_output,json=methodOutput,proto3" json:"method_output,omitempty"`
	ChannelName   string `protobuf:"bytes,4,opt,name=channelName,proto3" json:"channelName,omitempty"`
	ChaincodeName string `protobuf:"bytes,5,opt,name=chaincodeName,proto3" json:"chaincodeName,omitempty"`
	// contains filtered or unexported fields
}

func (*MethodInfo) Descriptor deprecated

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

Deprecated: Use MethodInfo.ProtoReflect.Descriptor instead.

func (*MethodInfo) GetChaincodeName

func (x *MethodInfo) GetChaincodeName() string

func (*MethodInfo) GetChannelName

func (x *MethodInfo) GetChannelName() string

func (*MethodInfo) GetMethodInput

func (x *MethodInfo) GetMethodInput() string

func (*MethodInfo) GetMethodOutput

func (x *MethodInfo) GetMethodOutput() string

func (*MethodInfo) GetName

func (x *MethodInfo) GetName() string

func (*MethodInfo) ProtoMessage

func (*MethodInfo) ProtoMessage()

func (*MethodInfo) ProtoReflect

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

func (*MethodInfo) Reset

func (x *MethodInfo) Reset()

func (*MethodInfo) String

func (x *MethodInfo) String() string

type MethodResponse

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

func (*MethodResponse) Descriptor deprecated

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

Deprecated: Use MethodResponse.ProtoReflect.Descriptor instead.

func (*MethodResponse) GetError

func (x *MethodResponse) GetError() string

func (*MethodResponse) GetResponse

func (x *MethodResponse) GetResponse() string

func (*MethodResponse) ProtoMessage

func (*MethodResponse) ProtoMessage()

func (*MethodResponse) ProtoReflect

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

func (*MethodResponse) Reset

func (x *MethodResponse) Reset()

func (*MethodResponse) String

func (x *MethodResponse) String() string

type PermittedNetworkAddress

type PermittedNetworkAddress struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*PermittedNetworkAddress) Descriptor deprecated

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

Deprecated: Use PermittedNetworkAddress.ProtoReflect.Descriptor instead.

func (*PermittedNetworkAddress) GetAddress

func (x *PermittedNetworkAddress) GetAddress() string

func (*PermittedNetworkAddress) ProtoMessage

func (*PermittedNetworkAddress) ProtoMessage()

func (*PermittedNetworkAddress) ProtoReflect

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

func (*PermittedNetworkAddress) Reset

func (x *PermittedNetworkAddress) Reset()

func (*PermittedNetworkAddress) String

func (x *PermittedNetworkAddress) String() string

type PermittedNetworkId

type PermittedNetworkId struct {
	NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PermittedNetworkId) Descriptor deprecated

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

Deprecated: Use PermittedNetworkId.ProtoReflect.Descriptor instead.

func (*PermittedNetworkId) GetNetworkId

func (x *PermittedNetworkId) GetNetworkId() string

func (*PermittedNetworkId) ProtoMessage

func (*PermittedNetworkId) ProtoMessage()

func (*PermittedNetworkId) ProtoReflect

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

func (*PermittedNetworkId) Reset

func (x *PermittedNetworkId) Reset()

func (*PermittedNetworkId) String

func (x *PermittedNetworkId) String() string

type PermittedNetworkInfo

type PermittedNetworkInfo struct {
	NetworkName    string `protobuf:"bytes,1,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"`
	NetworkId      string `protobuf:"bytes,2,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"`
	Network_IP     string `protobuf:"bytes,4,opt,name=network_IP,json=networkIP,proto3" json:"network_IP,omitempty"`
	CompanyName    string `protobuf:"bytes,5,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"`
	// contains filtered or unexported fields
}

func (*PermittedNetworkInfo) Descriptor deprecated

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

Deprecated: Use PermittedNetworkInfo.ProtoReflect.Descriptor instead.

func (*PermittedNetworkInfo) GetCompanyName

func (x *PermittedNetworkInfo) GetCompanyName() string

func (*PermittedNetworkInfo) GetNetworkAddress

func (x *PermittedNetworkInfo) GetNetworkAddress() string

func (*PermittedNetworkInfo) GetNetworkId

func (x *PermittedNetworkInfo) GetNetworkId() string

func (*PermittedNetworkInfo) GetNetworkName

func (x *PermittedNetworkInfo) GetNetworkName() string

func (*PermittedNetworkInfo) GetNetwork_IP

func (x *PermittedNetworkInfo) GetNetwork_IP() string

func (*PermittedNetworkInfo) ProtoMessage

func (*PermittedNetworkInfo) ProtoMessage()

func (*PermittedNetworkInfo) ProtoReflect

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

func (*PermittedNetworkInfo) Reset

func (x *PermittedNetworkInfo) Reset()

func (*PermittedNetworkInfo) String

func (x *PermittedNetworkInfo) String() string

type UnimplementedIOPServer

type UnimplementedIOPServer struct {
}

UnimplementedIOPServer must be embedded to have forward compatible implementations.

func (UnimplementedIOPServer) GetPermittedMethodsList

func (UnimplementedIOPServer) InvokePermittedMethod

type UnsafeIOPServer

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

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

Jump to

Keyboard shortcuts

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