celerx_fee_interface

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 17 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

This section is empty.

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"`
	Note                 *any.Any               `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` // Deprecated: Do not use.
	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"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

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

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

func (*FeeEvent) GetNote deprecated

func (m *FeeEvent) GetNote() *any.Any

Deprecated: Do not use.

func (*FeeEvent) GetNotePbString

func (m *FeeEvent) GetNotePbString() string

func (*FeeEvent) GetPay

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

func (*FeeEvent) GetPayId

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

func (*FeeEvent) GetSendSuccess

func (m *FeeEvent) GetSendSuccess() bool

func (*FeeEvent) ProtoMessage

func (*FeeEvent) ProtoMessage()

func (*FeeEvent) Reset

func (m *FeeEvent) Reset()

func (*FeeEvent) String

func (m *FeeEvent) String() string

func (*FeeEvent) XXX_DiscardUnknown

func (m *FeeEvent) XXX_DiscardUnknown()

func (*FeeEvent) XXX_Marshal

func (m *FeeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeeEvent) XXX_Merge

func (m *FeeEvent) XXX_Merge(src proto.Message)

func (*FeeEvent) XXX_Size

func (m *FeeEvent) XXX_Size() int

func (*FeeEvent) XXX_Unmarshal

func (m *FeeEvent) XXX_Unmarshal(b []byte) error

type NewHopStreamEvent

type NewHopStreamEvent struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*NewHopStreamEvent) Descriptor

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

func (*NewHopStreamEvent) GetAddr

func (m *NewHopStreamEvent) GetAddr() string

func (*NewHopStreamEvent) ProtoMessage

func (*NewHopStreamEvent) ProtoMessage()

func (*NewHopStreamEvent) Reset

func (m *NewHopStreamEvent) Reset()

func (*NewHopStreamEvent) String

func (m *NewHopStreamEvent) String() string

func (*NewHopStreamEvent) XXX_DiscardUnknown

func (m *NewHopStreamEvent) XXX_DiscardUnknown()

func (*NewHopStreamEvent) XXX_Marshal

func (m *NewHopStreamEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewHopStreamEvent) XXX_Merge

func (m *NewHopStreamEvent) XXX_Merge(src proto.Message)

func (*NewHopStreamEvent) XXX_Size

func (m *NewHopStreamEvent) XXX_Size() int

func (*NewHopStreamEvent) XXX_Unmarshal

func (m *NewHopStreamEvent) XXX_Unmarshal(b []byte) error

type OspSubscriberClient

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

OspSubscriberClient is the client API for OspSubscriber service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOspSubscriberClient

func NewOspSubscriberClient(cc *grpc.ClientConn) OspSubscriberClient

type OspSubscriberServer

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

OspSubscriberServer is the server API for OspSubscriber service.

Jump to

Keyboard shortcuts

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