__

package
v0.0.0-...-d356a15 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Call.ProtoReflect.Descriptor instead.

func (*Call) GetDependency

func (x *Call) GetDependency() string

func (*Call) GetDuration

func (x *Call) GetDuration() *durationpb.Duration

func (*Call) GetError

func (x *Call) GetError() string

func (*Call) GetName

func (x *Call) GetName() string

func (*Call) GetStartedAt

func (x *Call) GetStartedAt() *timestamppb.Timestamp

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) ProtoReflect

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

func (*Call) Reset

func (x *Call) Reset()

func (*Call) String

func (x *Call) String() string

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

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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