curmgt

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package curmgt is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var CurMgt_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blueapi.blue.curmgt.v1.CurMgt",
	HandlerType: (*CurMgtServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAccounts",
			Handler:    _CurMgt_ListAccounts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "curmgt/v1/curmgt.proto",
}

CurMgt_ServiceDesc is the grpc.ServiceDesc for CurMgt service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_curmgt_v1_curmgt_proto protoreflect.FileDescriptor

Functions

func RegisterCurMgtHandler

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

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

func RegisterCurMgtHandlerClient

func RegisterCurMgtHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CurMgtClient) error

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

func RegisterCurMgtHandlerFromEndpoint

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

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

func RegisterCurMgtHandlerServer

func RegisterCurMgtHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CurMgtServer) error

RegisterCurMgtHandlerServer registers the http handlers for service CurMgt to "mux". UnaryRPC :call CurMgtServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCurMgtHandlerFromEndpoint instead.

func RegisterCurMgtServer

func RegisterCurMgtServer(s grpc.ServiceRegistrar, srv CurMgtServer)

Types

type CurMgtClient

type CurMgtClient interface {
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
}

CurMgtClient is the client API for CurMgt 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.

func NewCurMgtClient

func NewCurMgtClient(cc grpc.ClientConnInterface) CurMgtClient

type CurMgtServer

type CurMgtServer interface {
	ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
	// contains filtered or unexported methods
}

CurMgtServer is the server API for CurMgt service. All implementations must embed UnimplementedCurMgtServer for forward compatibility

type ListAccountsRequest

type ListAccountsRequest struct {
	// contains filtered or unexported fields
}

Request message for CurMgt.ListAccounts.

func (*ListAccountsRequest) Descriptor deprecated

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

Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountsRequest) ProtoMessage

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) ProtoReflect

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

func (*ListAccountsRequest) Reset

func (x *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String

func (x *ListAccountsRequest) String() string

type ListAccountsResponse

type ListAccountsResponse struct {
	Accounts []*aws.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

Response message for CurMgt.ListAccounts.

func (*ListAccountsResponse) Descriptor deprecated

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

Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountsResponse) GetAccounts

func (x *ListAccountsResponse) GetAccounts() []*aws.Account

func (*ListAccountsResponse) ProtoMessage

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) ProtoReflect

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

func (*ListAccountsResponse) Reset

func (x *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String

func (x *ListAccountsResponse) String() string

type UnimplementedCurMgtServer

type UnimplementedCurMgtServer struct {
}

UnimplementedCurMgtServer must be embedded to have forward compatible implementations.

func (UnimplementedCurMgtServer) ListAccounts

type UnsafeCurMgtServer

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

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

Jump to

Keyboard shortcuts

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