Documentation ¶
Overview ¶
Package awscost is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAwsCostHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAwsCostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AwsCostClient) error
- func RegisterAwsCostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAwsCostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AwsCostServer) error
- func RegisterAwsCostServer(s grpc.ServiceRegistrar, srv AwsCostServer)
- type AwsCostClient
- type AwsCostServer
- type AwsCost_GetCostsClient
- type AwsCost_GetCostsServer
- type GetCostsReply
- type GetCostsRequest
- type UnimplementedAwsCostServer
- type UnsafeAwsCostServer
Constants ¶
This section is empty.
Variables ¶
var AwsCost_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blueapi.awscost.v1.AwsCost", HandlerType: (*AwsCostServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GetCosts", Handler: _AwsCost_GetCosts_Handler, ServerStreams: true, }, }, Metadata: "awscost/v1/awscost.proto", }
AwsCost_ServiceDesc is the grpc.ServiceDesc for AwsCost service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_awscost_v1_awscost_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAwsCostHandler ¶
func RegisterAwsCostHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAwsCostHandler registers the http handlers for service AwsCost to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAwsCostHandlerClient ¶
func RegisterAwsCostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AwsCostClient) error
RegisterAwsCostHandlerClient registers the http handlers for service AwsCost to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AwsCostClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AwsCostClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AwsCostClient" to call the correct interceptors.
func RegisterAwsCostHandlerFromEndpoint ¶
func RegisterAwsCostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAwsCostHandlerFromEndpoint is same as RegisterAwsCostHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAwsCostHandlerServer ¶
func RegisterAwsCostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AwsCostServer) error
RegisterAwsCostHandlerServer registers the http handlers for service AwsCost to "mux". UnaryRPC :call AwsCostServer 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 RegisterAwsCostHandlerFromEndpoint instead.
func RegisterAwsCostServer ¶
func RegisterAwsCostServer(s grpc.ServiceRegistrar, srv AwsCostServer)
Types ¶
type AwsCostClient ¶
type AwsCostClient interface {
GetCosts(ctx context.Context, in *GetCostsRequest, opts ...grpc.CallOption) (AwsCost_GetCostsClient, error)
}
AwsCostClient is the client API for AwsCost 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 NewAwsCostClient ¶
func NewAwsCostClient(cc grpc.ClientConnInterface) AwsCostClient
type AwsCostServer ¶
type AwsCostServer interface { GetCosts(*GetCostsRequest, AwsCost_GetCostsServer) error // contains filtered or unexported methods }
AwsCostServer is the server API for AwsCost service. All implementations must embed UnimplementedAwsCostServer for forward compatibility
type AwsCost_GetCostsClient ¶
type AwsCost_GetCostsClient interface { Recv() (*GetCostsReply, error) grpc.ClientStream }
type AwsCost_GetCostsServer ¶
type AwsCost_GetCostsServer interface { Send(*GetCostsReply) error grpc.ServerStream }
type GetCostsReply ¶
type GetCostsReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GetCostsReply) Descriptor
deprecated
func (*GetCostsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCostsReply.ProtoReflect.Descriptor instead.
func (*GetCostsReply) GetMessage ¶
func (x *GetCostsReply) GetMessage() string
func (*GetCostsReply) ProtoMessage ¶
func (*GetCostsReply) ProtoMessage()
func (*GetCostsReply) ProtoReflect ¶
func (x *GetCostsReply) ProtoReflect() protoreflect.Message
func (*GetCostsReply) Reset ¶
func (x *GetCostsReply) Reset()
func (*GetCostsReply) String ¶
func (x *GetCostsReply) String() string
type GetCostsRequest ¶
type GetCostsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetCostsRequest) Descriptor
deprecated
func (*GetCostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCostsRequest.ProtoReflect.Descriptor instead.
func (*GetCostsRequest) GetName ¶
func (x *GetCostsRequest) GetName() string
func (*GetCostsRequest) ProtoMessage ¶
func (*GetCostsRequest) ProtoMessage()
func (*GetCostsRequest) ProtoReflect ¶
func (x *GetCostsRequest) ProtoReflect() protoreflect.Message
func (*GetCostsRequest) Reset ¶
func (x *GetCostsRequest) Reset()
func (*GetCostsRequest) String ¶
func (x *GetCostsRequest) String() string
type UnimplementedAwsCostServer ¶
type UnimplementedAwsCostServer struct { }
UnimplementedAwsCostServer must be embedded to have forward compatible implementations.
func (UnimplementedAwsCostServer) GetCosts ¶
func (UnimplementedAwsCostServer) GetCosts(*GetCostsRequest, AwsCost_GetCostsServer) error
type UnsafeAwsCostServer ¶
type UnsafeAwsCostServer interface {
// contains filtered or unexported methods
}
UnsafeAwsCostServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AwsCostServer will result in compilation errors.