handler

package
v0.0.0-...-08a0a91 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright 2024 Outernet Council Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const TARGET_NAME = "target/mysat"

Variables

This section is empty.

Functions

This section is empty.

Types

type PrototypeHandler

type PrototypeHandler struct {
	pb.UnimplementedInterconnectServiceServer
	// contains filtered or unexported fields
}

func NewPrototypeHandler

func NewPrototypeHandler() *PrototypeHandler

We pretend to be a very simple provider with one target only.

func (*PrototypeHandler) CreateAttachmentCircuit

func (*PrototypeHandler) CreateBearer

func (p *PrototypeHandler) CreateBearer(_ context.Context, bearer *pb.CreateBearerRequest) (*pb.Bearer, error)

func (*PrototypeHandler) CreateTransceiver

func (p *PrototypeHandler) CreateTransceiver(_ context.Context, trans *pb.CreateTransceiverRequest) (*pb.Transceiver, error)

func (*PrototypeHandler) DeleteAttachmentCircuit

func (p *PrototypeHandler) DeleteAttachmentCircuit(_ context.Context, request *pb.DeleteAttachmentCircuitRequest) (*emptypb.Empty, error)

func (*PrototypeHandler) DeleteBearer

func (p *PrototypeHandler) DeleteBearer(_ context.Context, bearer *pb.DeleteBearerRequest) (*emptypb.Empty, error)

func (*PrototypeHandler) DeleteTransceiver

func (p *PrototypeHandler) DeleteTransceiver(_ context.Context, trans *pb.DeleteTransceiverRequest) (*emptypb.Empty, error)

func (*PrototypeHandler) GetAttachmentCircuit

func (p *PrototypeHandler) GetAttachmentCircuit(_ context.Context, circuit *pb.GetAttachmentCircuitRequest) (*pb.AttachmentCircuit, error)

func (*PrototypeHandler) GetBearer

func (p *PrototypeHandler) GetBearer(_ context.Context, bearer *pb.GetBearerRequest) (*pb.Bearer, error)

func (*PrototypeHandler) GetTarget

func (p *PrototypeHandler) GetTarget(_ context.Context, targetRequest *pb.GetTargetRequest) (*pb.Target, error)

func (*PrototypeHandler) GetTransceiver

func (p *PrototypeHandler) GetTransceiver(ctx context.Context, trans *pb.GetTransceiverRequest) (*pb.Transceiver, error)

func (*PrototypeHandler) ListAttachmentCircuits

func (*PrototypeHandler) ListBearers

func (*PrototypeHandler) ListContactWindows

func (*PrototypeHandler) ListTargets

func (*PrototypeHandler) ListTransceivers

func (*PrototypeHandler) UpdateTransceiver

func (p *PrototypeHandler) UpdateTransceiver(_ context.Context, trans *pb.UpdateTransceiverRequest) (*pb.Transceiver, error)

Jump to

Keyboard shortcuts

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