api

package
v0.3.0-dev1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBridge        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBridge          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBridge = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterBridgeServiceServer

func RegisterBridgeServiceServer(s grpc1.Server, srv BridgeServiceServer)

Types

type AddBridgeEventsRequest

type AddBridgeEventsRequest struct {
	BridgeEvents []types.BridgeEvent `protobuf:"bytes,1,rep,name=bridge_events,json=bridgeEvents,proto3" json:"bridge_events"`
}

AddBridgeEventsRequest is a request message that contains a list of new bridge events. The events should be contiguous and sorted by (unique) id.

func (*AddBridgeEventsRequest) Descriptor

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

func (*AddBridgeEventsRequest) GetBridgeEvents

func (m *AddBridgeEventsRequest) GetBridgeEvents() []types.BridgeEvent

func (*AddBridgeEventsRequest) Marshal

func (m *AddBridgeEventsRequest) Marshal() (dAtA []byte, err error)

func (*AddBridgeEventsRequest) MarshalTo

func (m *AddBridgeEventsRequest) MarshalTo(dAtA []byte) (int, error)

func (*AddBridgeEventsRequest) MarshalToSizedBuffer

func (m *AddBridgeEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddBridgeEventsRequest) ProtoMessage

func (*AddBridgeEventsRequest) ProtoMessage()

func (*AddBridgeEventsRequest) Reset

func (m *AddBridgeEventsRequest) Reset()

func (*AddBridgeEventsRequest) Size

func (m *AddBridgeEventsRequest) Size() (n int)

func (*AddBridgeEventsRequest) String

func (m *AddBridgeEventsRequest) String() string

func (*AddBridgeEventsRequest) Unmarshal

func (m *AddBridgeEventsRequest) Unmarshal(dAtA []byte) error

func (*AddBridgeEventsRequest) XXX_DiscardUnknown

func (m *AddBridgeEventsRequest) XXX_DiscardUnknown()

func (*AddBridgeEventsRequest) XXX_Marshal

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

func (*AddBridgeEventsRequest) XXX_Merge

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

func (*AddBridgeEventsRequest) XXX_Size

func (m *AddBridgeEventsRequest) XXX_Size() int

func (*AddBridgeEventsRequest) XXX_Unmarshal

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

type AddBridgeEventsResponse

type AddBridgeEventsResponse struct {
}

AddBridgeEventsResponse is a response message for BridgeEventRequest.

func (*AddBridgeEventsResponse) Descriptor

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

func (*AddBridgeEventsResponse) Marshal

func (m *AddBridgeEventsResponse) Marshal() (dAtA []byte, err error)

func (*AddBridgeEventsResponse) MarshalTo

func (m *AddBridgeEventsResponse) MarshalTo(dAtA []byte) (int, error)

func (*AddBridgeEventsResponse) MarshalToSizedBuffer

func (m *AddBridgeEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddBridgeEventsResponse) ProtoMessage

func (*AddBridgeEventsResponse) ProtoMessage()

func (*AddBridgeEventsResponse) Reset

func (m *AddBridgeEventsResponse) Reset()

func (*AddBridgeEventsResponse) Size

func (m *AddBridgeEventsResponse) Size() (n int)

func (*AddBridgeEventsResponse) String

func (m *AddBridgeEventsResponse) String() string

func (*AddBridgeEventsResponse) Unmarshal

func (m *AddBridgeEventsResponse) Unmarshal(dAtA []byte) error

func (*AddBridgeEventsResponse) XXX_DiscardUnknown

func (m *AddBridgeEventsResponse) XXX_DiscardUnknown()

func (*AddBridgeEventsResponse) XXX_Marshal

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

func (*AddBridgeEventsResponse) XXX_Merge

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

func (*AddBridgeEventsResponse) XXX_Size

func (m *AddBridgeEventsResponse) XXX_Size() int

func (*AddBridgeEventsResponse) XXX_Unmarshal

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

type BridgeServiceClient

type BridgeServiceClient interface {
	// Sends a list of newly recognized bridge events.
	AddBridgeEvents(ctx context.Context, in *AddBridgeEventsRequest, opts ...grpc.CallOption) (*AddBridgeEventsResponse, error)
}

BridgeServiceClient is the client API for BridgeService service.

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

func NewBridgeServiceClient

func NewBridgeServiceClient(cc grpc1.ClientConn) BridgeServiceClient

type BridgeServiceServer

type BridgeServiceServer interface {
	// Sends a list of newly recognized bridge events.
	AddBridgeEvents(context.Context, *AddBridgeEventsRequest) (*AddBridgeEventsResponse, error)
}

BridgeServiceServer is the server API for BridgeService service.

type UnimplementedBridgeServiceServer

type UnimplementedBridgeServiceServer struct {
}

UnimplementedBridgeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBridgeServiceServer) AddBridgeEvents

Jump to

Keyboard shortcuts

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