celerx_fee_interface

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package celerx_fee_interface is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

Functions

func RegisterOspSubscriberHandler

func RegisterOspSubscriberHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOspSubscriberHandler registers the http handlers for service OspSubscriber to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOspSubscriberHandlerClient

func RegisterOspSubscriberHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OspSubscriberClient) error

RegisterOspSubscriberHandlerClient registers the http handlers for service OspSubscriber to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OspSubscriberClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OspSubscriberClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OspSubscriberClient" to call the correct interceptors.

func RegisterOspSubscriberHandlerFromEndpoint

func RegisterOspSubscriberHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOspSubscriberHandlerFromEndpoint is same as RegisterOspSubscriberHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOspSubscriberHandlerServer

func RegisterOspSubscriberHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OspSubscriberServer) error

RegisterOspSubscriberHandlerServer registers the http handlers for service OspSubscriber to "mux". UnaryRPC :call OspSubscriberServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterOspSubscriberServer

func RegisterOspSubscriberServer(s *grpc.Server, srv OspSubscriberServer)

Types

type FeeEvent

type FeeEvent struct {
	Pay *entity.ConditionalPay `protobuf:"bytes,1,opt,name=pay,proto3" json:"pay,omitempty"`
	// Deprecated: Marked as deprecated in fee.proto.
	Note         *anypb.Any `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
	SendSuccess  bool       `protobuf:"varint,3,opt,name=send_success,json=sendSuccess,proto3" json:"send_success,omitempty"`
	PayId        []byte     `protobuf:"bytes,4,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
	NotePbString string     `protobuf:"bytes,5,opt,name=note_pb_string,json=notePbString,proto3" json:"note_pb_string,omitempty"`
	// contains filtered or unexported fields
}

FeeEvent to be renamed to PayEvent to be use-case neutral and to be moved to proto repo. This message is now the API osp published for pay event. Next Tag: 6

func (*FeeEvent) Descriptor deprecated

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

Deprecated: Use FeeEvent.ProtoReflect.Descriptor instead.

func (*FeeEvent) GetNote deprecated

func (x *FeeEvent) GetNote() *anypb.Any

Deprecated: Marked as deprecated in fee.proto.

func (*FeeEvent) GetNotePbString

func (x *FeeEvent) GetNotePbString() string

func (*FeeEvent) GetPay

func (x *FeeEvent) GetPay() *entity.ConditionalPay

func (*FeeEvent) GetPayId

func (x *FeeEvent) GetPayId() []byte

func (*FeeEvent) GetSendSuccess

func (x *FeeEvent) GetSendSuccess() bool

func (*FeeEvent) ProtoMessage

func (*FeeEvent) ProtoMessage()

func (*FeeEvent) ProtoReflect added in v1.1.0

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

func (*FeeEvent) Reset

func (x *FeeEvent) Reset()

func (*FeeEvent) String

func (x *FeeEvent) String() string

type NewHopStreamEvent

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

--------------------------- OSP-facing service ----------------------------- Next Tag: 2

func (*NewHopStreamEvent) Descriptor deprecated

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

Deprecated: Use NewHopStreamEvent.ProtoReflect.Descriptor instead.

func (*NewHopStreamEvent) GetAddr

func (x *NewHopStreamEvent) GetAddr() string

func (*NewHopStreamEvent) ProtoMessage

func (*NewHopStreamEvent) ProtoMessage()

func (*NewHopStreamEvent) ProtoReflect added in v1.1.0

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

func (*NewHopStreamEvent) Reset

func (x *NewHopStreamEvent) Reset()

func (*NewHopStreamEvent) String

func (x *NewHopStreamEvent) String() string

type OspSubscriberClient

type OspSubscriberClient interface {
	NotifyNewStream(ctx context.Context, in *NewHopStreamEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
	NotifyFeeReceived(ctx context.Context, in *FeeEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
	NotifyFeeSendComplete(ctx context.Context, in *FeeEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OspSubscriberClient is the client API for OspSubscriber 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.

type OspSubscriberServer

type OspSubscriberServer interface {
	NotifyNewStream(context.Context, *NewHopStreamEvent) (*emptypb.Empty, error)
	NotifyFeeReceived(context.Context, *FeeEvent) (*emptypb.Empty, error)
	NotifyFeeSendComplete(context.Context, *FeeEvent) (*emptypb.Empty, error)
}

OspSubscriberServer is the server API for OspSubscriber service. All implementations should embed UnimplementedOspSubscriberServer for forward compatibility

type UnimplementedOspSubscriberServer added in v1.1.0

type UnimplementedOspSubscriberServer struct {
}

UnimplementedOspSubscriberServer should be embedded to have forward compatible implementations.

func (UnimplementedOspSubscriberServer) NotifyFeeReceived added in v1.1.0

func (UnimplementedOspSubscriberServer) NotifyFeeSendComplete added in v1.1.0

func (UnimplementedOspSubscriberServer) NotifyNewStream added in v1.1.0

type UnsafeOspSubscriberServer added in v1.1.0

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

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

Jump to

Keyboard shortcuts

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