node_write_servicev1grpc

package
v1.3.0-20230519000832-... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeWriteService_CreateTransaction_FullMethodName = "/node_write_service.v1.NodeWriteService/CreateTransaction"
	NodeWriteService_CreateAccount_FullMethodName     = "/node_write_service.v1.NodeWriteService/CreateAccount"
	NodeWriteService_UpdateAccount_FullMethodName     = "/node_write_service.v1.NodeWriteService/UpdateAccount"
)

Variables

View Source
var NodeWriteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "node_write_service.v1.NodeWriteService",
	HandlerType: (*NodeWriteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTransaction",
			Handler:    _NodeWriteService_CreateTransaction_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _NodeWriteService_CreateAccount_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _NodeWriteService_UpdateAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "infra/proto/node_write_service/v1/node_write_service.proto",
}

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

Functions

func RegisterNodeWriteServiceServer

func RegisterNodeWriteServiceServer(s grpc.ServiceRegistrar, srv NodeWriteServiceServer)

Types

type NodeWriteServiceClient

type NodeWriteServiceClient interface {
	CreateTransaction(ctx context.Context, in *v1.CreateTransactionRequest, opts ...grpc.CallOption) (*v1.TransactionRecord, error)
	CreateAccount(ctx context.Context, in *v1.CreateAccountRequest, opts ...grpc.CallOption) (*v1.Account, error)
	UpdateAccount(ctx context.Context, in *v1.UpdateAccountRequest, opts ...grpc.CallOption) (*v1.Account, error)
}

NodeWriteServiceClient is the client API for NodeWriteService 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 NewNodeWriteServiceClient

func NewNodeWriteServiceClient(cc grpc.ClientConnInterface) NodeWriteServiceClient

type NodeWriteServiceServer

type NodeWriteServiceServer interface {
	CreateTransaction(context.Context, *v1.CreateTransactionRequest) (*v1.TransactionRecord, error)
	CreateAccount(context.Context, *v1.CreateAccountRequest) (*v1.Account, error)
	UpdateAccount(context.Context, *v1.UpdateAccountRequest) (*v1.Account, error)
}

NodeWriteServiceServer is the server API for NodeWriteService service. All implementations should embed UnimplementedNodeWriteServiceServer for forward compatibility

type UnimplementedNodeWriteServiceServer

type UnimplementedNodeWriteServiceServer struct {
}

UnimplementedNodeWriteServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedNodeWriteServiceServer) CreateAccount

func (UnimplementedNodeWriteServiceServer) CreateTransaction

func (UnimplementedNodeWriteServiceServer) UpdateAccount

type UnsafeNodeWriteServiceServer

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

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

Jump to

Keyboard shortcuts

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