Documentation ¶
Index ¶
- Variables
- type APIClient
- type Call
- func (*Call) Descriptor() ([]byte, []int)deprecated
- func (x *Call) GetDependency() string
- func (x *Call) GetDuration() *durationpb.Duration
- func (x *Call) GetError() string
- func (x *Call) GetName() string
- func (x *Call) GetStartedAt() *timestamppb.Timestamp
- func (*Call) ProtoMessage()
- func (x *Call) ProtoReflect() protoreflect.Message
- func (x *Call) Reset()
- func (x *Call) String() string
- type RecordCallsRequest
- func (*RecordCallsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RecordCallsRequest) GetCalls() []*Call
- func (x *RecordCallsRequest) GetEnv() string
- func (x *RecordCallsRequest) GetService() string
- func (*RecordCallsRequest) ProtoMessage()
- func (x *RecordCallsRequest) ProtoReflect() protoreflect.Message
- func (x *RecordCallsRequest) Reset()
- func (x *RecordCallsRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_api_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface {
RecordCalls(ctx context.Context, in *RecordCallsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type Call ¶
type Call struct { // Name is the name of the call. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Dependency is the name of the dependency being accessed by the call. Dependency string `protobuf:"bytes,2,opt,name=dependency,proto3" json:"dependency,omitempty"` // StartedAt is the time the call began. StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=startedAt,proto3" json:"startedAt,omitempty"` // Duration indicates how long the call took. Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // Error is populated when the call resulted in an error. Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
The call payload.
func (*Call) Descriptor
deprecated
func (*Call) GetDependency ¶
func (*Call) GetDuration ¶
func (x *Call) GetDuration() *durationpb.Duration
func (*Call) GetStartedAt ¶
func (x *Call) GetStartedAt() *timestamppb.Timestamp
func (*Call) ProtoMessage ¶
func (*Call) ProtoMessage()
func (*Call) ProtoReflect ¶
func (x *Call) ProtoReflect() protoreflect.Message
type RecordCallsRequest ¶
type RecordCallsRequest struct { // The calls to record Calls []*Call `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"` // The environment the calls occurred in. Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"` // The service making the calls. Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
The request payload for the record calls method.
func (*RecordCallsRequest) Descriptor
deprecated
func (*RecordCallsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecordCallsRequest.ProtoReflect.Descriptor instead.
func (*RecordCallsRequest) GetCalls ¶
func (x *RecordCallsRequest) GetCalls() []*Call
func (*RecordCallsRequest) GetEnv ¶
func (x *RecordCallsRequest) GetEnv() string
func (*RecordCallsRequest) GetService ¶
func (x *RecordCallsRequest) GetService() string
func (*RecordCallsRequest) ProtoMessage ¶
func (*RecordCallsRequest) ProtoMessage()
func (*RecordCallsRequest) ProtoReflect ¶
func (x *RecordCallsRequest) ProtoReflect() protoreflect.Message
func (*RecordCallsRequest) Reset ¶
func (x *RecordCallsRequest) Reset()
func (*RecordCallsRequest) String ¶
func (x *RecordCallsRequest) String() string
Click to show internal directories.
Click to hide internal directories.