Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSessionServer(s grpc.ServiceRegistrar, srv SessionServer)
- type GetSessionStatsResponse
- func (*GetSessionStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionStatsResponse) GetDownloadedBytes() int64
- func (x *GetSessionStatsResponse) GetHits() int64
- func (x *GetSessionStatsResponse) GetMisses() int64
- func (x *GetSessionStatsResponse) GetUploadedBytes() int64
- func (*GetSessionStatsResponse) ProtoMessage()
- func (x *GetSessionStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSessionStatsResponse) Reset()
- func (x *GetSessionStatsResponse) String() string
- type SessionClient
- type SessionServer
- type SetSessionRequest
- func (*SetSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetSessionRequest) GetAppSlug() string
- func (x *SetSessionRequest) GetBuildSlug() string
- func (x *SetSessionRequest) GetInvocationId() string
- func (x *SetSessionRequest) GetStepSlug() string
- func (*SetSessionRequest) ProtoMessage()
- func (x *SetSessionRequest) ProtoReflect() protoreflect.Message
- func (x *SetSessionRequest) Reset()
- func (x *SetSessionRequest) String() string
- type UnimplementedSessionServer
- type UnsafeSessionServer
Constants ¶
const ( Session_SetSession_FullMethodName = "/session.Session/SetSession" Session_GetSessionStats_FullMethodName = "/session.Session/GetSessionStats" )
Variables ¶
var File_llvm_session_session_proto protoreflect.FileDescriptor
var Session_ServiceDesc = grpc.ServiceDesc{ ServiceName: "session.Session", HandlerType: (*SessionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetSession", Handler: _Session_SetSession_Handler, }, { MethodName: "GetSessionStats", Handler: _Session_GetSessionStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "llvm/session/session.proto", }
Session_ServiceDesc is the grpc.ServiceDesc for Session service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSessionServer ¶
func RegisterSessionServer(s grpc.ServiceRegistrar, srv SessionServer)
Types ¶
type GetSessionStatsResponse ¶
type GetSessionStatsResponse struct { UploadedBytes int64 `protobuf:"varint,1,opt,name=uploaded_bytes,json=uploadedBytes,proto3" json:"uploaded_bytes,omitempty"` DownloadedBytes int64 `protobuf:"varint,2,opt,name=downloaded_bytes,json=downloadedBytes,proto3" json:"downloaded_bytes,omitempty"` Hits int64 `protobuf:"varint,3,opt,name=hits,proto3" json:"hits,omitempty"` Misses int64 `protobuf:"varint,4,opt,name=misses,proto3" json:"misses,omitempty"` // contains filtered or unexported fields }
func (*GetSessionStatsResponse) Descriptor
deprecated
func (*GetSessionStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionStatsResponse.ProtoReflect.Descriptor instead.
func (*GetSessionStatsResponse) GetDownloadedBytes ¶
func (x *GetSessionStatsResponse) GetDownloadedBytes() int64
func (*GetSessionStatsResponse) GetHits ¶
func (x *GetSessionStatsResponse) GetHits() int64
func (*GetSessionStatsResponse) GetMisses ¶
func (x *GetSessionStatsResponse) GetMisses() int64
func (*GetSessionStatsResponse) GetUploadedBytes ¶
func (x *GetSessionStatsResponse) GetUploadedBytes() int64
func (*GetSessionStatsResponse) ProtoMessage ¶
func (*GetSessionStatsResponse) ProtoMessage()
func (*GetSessionStatsResponse) ProtoReflect ¶
func (x *GetSessionStatsResponse) ProtoReflect() protoreflect.Message
func (*GetSessionStatsResponse) Reset ¶
func (x *GetSessionStatsResponse) Reset()
func (*GetSessionStatsResponse) String ¶
func (x *GetSessionStatsResponse) String() string
type SessionClient ¶
type SessionClient interface { SetSession(ctx context.Context, in *SetSessionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetSessionStats(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetSessionStatsResponse, error) }
SessionClient is the client API for Session 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 NewSessionClient ¶
func NewSessionClient(cc grpc.ClientConnInterface) SessionClient
type SessionServer ¶
type SessionServer interface { SetSession(context.Context, *SetSessionRequest) (*emptypb.Empty, error) GetSessionStats(context.Context, *emptypb.Empty) (*GetSessionStatsResponse, error) // contains filtered or unexported methods }
SessionServer is the server API for Session service. All implementations must embed UnimplementedSessionServer for forward compatibility.
type SetSessionRequest ¶
type SetSessionRequest struct { InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"` AppSlug string `protobuf:"bytes,2,opt,name=app_slug,json=appSlug,proto3" json:"app_slug,omitempty"` BuildSlug string `protobuf:"bytes,3,opt,name=build_slug,json=buildSlug,proto3" json:"build_slug,omitempty"` StepSlug string `protobuf:"bytes,4,opt,name=step_slug,json=stepSlug,proto3" json:"step_slug,omitempty"` // contains filtered or unexported fields }
func (*SetSessionRequest) Descriptor
deprecated
func (*SetSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetSessionRequest.ProtoReflect.Descriptor instead.
func (*SetSessionRequest) GetAppSlug ¶
func (x *SetSessionRequest) GetAppSlug() string
func (*SetSessionRequest) GetBuildSlug ¶
func (x *SetSessionRequest) GetBuildSlug() string
func (*SetSessionRequest) GetInvocationId ¶
func (x *SetSessionRequest) GetInvocationId() string
func (*SetSessionRequest) GetStepSlug ¶
func (x *SetSessionRequest) GetStepSlug() string
func (*SetSessionRequest) ProtoMessage ¶
func (*SetSessionRequest) ProtoMessage()
func (*SetSessionRequest) ProtoReflect ¶
func (x *SetSessionRequest) ProtoReflect() protoreflect.Message
func (*SetSessionRequest) Reset ¶
func (x *SetSessionRequest) Reset()
func (*SetSessionRequest) String ¶
func (x *SetSessionRequest) String() string
type UnimplementedSessionServer ¶
type UnimplementedSessionServer struct{}
UnimplementedSessionServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSessionServer) GetSessionStats ¶
func (UnimplementedSessionServer) GetSessionStats(context.Context, *emptypb.Empty) (*GetSessionStatsResponse, error)
func (UnimplementedSessionServer) SetSession ¶
func (UnimplementedSessionServer) SetSession(context.Context, *SetSessionRequest) (*emptypb.Empty, error)
type UnsafeSessionServer ¶
type UnsafeSessionServer interface {
// contains filtered or unexported methods
}
UnsafeSessionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServer will result in compilation errors.