server

package
v0.0.0-...-ef636f8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedRPCServer
	// contains filtered or unexported fields
}

Server implements a gRPC server that acts as a proxy for the greeter service and the Azure Resource Manager.

func New

func New(greeter gpb.GreeterClient, resources resourceClient) (*Server, error)

New is the constructore for Server.

func (*Server) CreateResourceGroup

func (s *Server) CreateResourceGroup(ctx context.Context, in *pb.CreateResourceGroupRequest) (*pb.CreateResourceGroupReply, error)

func (*Server) DeleteResourceGroup

func (s *Server) DeleteResourceGroup(ctx context.Context, in *pb.DeleteResourceGroupRequest) (*pb.DeleteResourceGroupReply, error)

func (*Server) ListResourceGroups

func (s *Server) ListResourceGroups(ctx context.Context, in *pb.ListResourceGroupsRequest) (*pb.ListResourceGroupsReply, error)

func (*Server) ReadResourceGroup

func (s *Server) ReadResourceGroup(ctx context.Context, in *pb.ReadResourceGroupRequest) (*pb.ReadResourceGroupReply, error)

func (*Server) SayHello

func (s *Server) SayHello(ctx context.Context, in *gpb.HelloRequest) (*gpb.HelloReply, error)

SayHello implements gpb.GreeterClient.SayHello().

func (*Server) UpdateResourceGroup

func (s *Server) UpdateResourceGroup(ctx context.Context, in *pb.UpdateResourceGroupRequest) (*pb.UpdateResourceGroupReply, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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