Documentation ¶
Overview ¶
Package curmgt is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCurMgtHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCurMgtHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CurMgtClient) error
- func RegisterCurMgtHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCurMgtHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CurMgtServer) error
- func RegisterCurMgtServer(s grpc.ServiceRegistrar, srv CurMgtServer)
- type CurMgtClient
- type CurMgtServer
- type GrpcClient
- type ListAccountsRequest
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsResponse) GetAccounts() []*aws.Account
- func (*ListAccountsResponse) ProtoMessage()
- func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAccountsResponse) Reset()
- func (x *ListAccountsResponse) String() string
- type NewClientOptions
- type UnimplementedCurMgtServer
- type UnsafeCurMgtServer
Constants ¶
This section is empty.
Variables ¶
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)
var File_curmgt_v1_curmgt_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCurMgtHandler ¶
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 GrpcClient ¶ added in v0.6.7
type GrpcClient struct { CurMgtClient // contains filtered or unexported fields }
func NewClient ¶ added in v0.6.7
func NewClient(ctx context.Context, opts ...*NewClientOptions) (*GrpcClient, error)
NewClient returns a client connection to the 'curmgt' service.
func (*GrpcClient) Close ¶ added in v0.6.7
func (c *GrpcClient) Close()
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 NewClientOptions ¶ added in v0.6.7
type NewClientOptions struct {
Conn *conn.GrpcClientConn
}
NewClientOptions represents the optional options to NewClient.
type UnimplementedCurMgtServer ¶
type UnimplementedCurMgtServer struct { }
UnimplementedCurMgtServer must be embedded to have forward compatible implementations.
func (UnimplementedCurMgtServer) ListAccounts ¶
func (UnimplementedCurMgtServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
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.