Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (x *Filter) GetCapsule() string
- func (x *Filter) GetEnvironment() string
- func (x *Filter) GetIncludeClosed() bool
- func (x *Filter) GetIncludeStale() bool
- func (x *Filter) GetLevel() Level
- func (x *Filter) GetProject() string
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- type GetIssuesRequest
- func (*GetIssuesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIssuesRequest) GetFilter() *Filter
- func (x *GetIssuesRequest) GetPagination() *model.Pagination
- func (*GetIssuesRequest) ProtoMessage()
- func (x *GetIssuesRequest) ProtoReflect() protoreflect.Message
- func (x *GetIssuesRequest) Reset()
- func (x *GetIssuesRequest) String() string
- type GetIssuesResponse
- func (*GetIssuesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIssuesResponse) GetIssues() []*Issue
- func (x *GetIssuesResponse) GetTotal() uint64
- func (*GetIssuesResponse) ProtoMessage()
- func (x *GetIssuesResponse) ProtoReflect() protoreflect.Message
- func (x *GetIssuesResponse) Reset()
- func (x *GetIssuesResponse) String() string
- type Issue
- func (*Issue) Descriptor() ([]byte, []int)deprecated
- func (x *Issue) GetClosedAt() *timestamppb.Timestamp
- func (x *Issue) GetCount() uint32
- func (x *Issue) GetCreatedAt() *timestamppb.Timestamp
- func (x *Issue) GetIssueId() string
- func (x *Issue) GetLevel() Level
- func (x *Issue) GetMessage() string
- func (x *Issue) GetReference() *Reference
- func (x *Issue) GetStaleAt() *timestamppb.Timestamp
- func (x *Issue) GetType() string
- func (x *Issue) GetUpdatedAt() *timestamppb.Timestamp
- func (*Issue) ProtoMessage()
- func (x *Issue) ProtoReflect() protoreflect.Message
- func (x *Issue) Reset()
- func (x *Issue) String() string
- type Level
- type Reference
- func (*Reference) Descriptor() ([]byte, []int)deprecated
- func (x *Reference) GetCapsuleId() string
- func (x *Reference) GetEnvironmentId() string
- func (x *Reference) GetInstanceId() string
- func (x *Reference) GetProjectId() string
- func (x *Reference) GetRolloutId() uint64
- func (*Reference) ProtoMessage()
- func (x *Reference) ProtoReflect() protoreflect.Message
- func (x *Reference) Reset()
- func (x *Reference) String() string
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Level_name = map[int32]string{ 0: "LEVEL_UNSPECIFIED", 1: "LEVEL_INFORMATIVE", 2: "LEVEL_MINOR", 3: "LEVEL_MAJOR", 4: "LEVEL_CRITICAL", } Level_value = map[string]int32{ "LEVEL_UNSPECIFIED": 0, "LEVEL_INFORMATIVE": 1, "LEVEL_MINOR": 2, "LEVEL_MAJOR": 3, "LEVEL_CRITICAL": 4, } )
Enum value maps for Level.
var File_api_v1_issue_issue_proto protoreflect.FileDescriptor
var File_api_v1_issue_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.issue.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetIssues", Handler: _Service_GetIssues_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/issue/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type Filter ¶
type Filter struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"` Capsule string `protobuf:"bytes,3,opt,name=capsule,proto3" json:"capsule,omitempty"` Level Level `protobuf:"varint,4,opt,name=level,proto3,enum=api.v1.issue.Level" json:"level,omitempty"` IncludeClosed bool `protobuf:"varint,5,opt,name=include_closed,json=includeClosed,proto3" json:"include_closed,omitempty"` IncludeStale bool `protobuf:"varint,6,opt,name=include_stale,json=includeStale,proto3" json:"include_stale,omitempty"` // contains filtered or unexported fields }
func (*Filter) Descriptor
deprecated
func (*Filter) GetCapsule ¶
func (*Filter) GetEnvironment ¶
func (*Filter) GetIncludeClosed ¶
func (*Filter) GetIncludeStale ¶
func (*Filter) GetProject ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type GetIssuesRequest ¶
type GetIssuesRequest struct { Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Filter *Filter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*GetIssuesRequest) Descriptor
deprecated
func (*GetIssuesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIssuesRequest.ProtoReflect.Descriptor instead.
func (*GetIssuesRequest) GetFilter ¶
func (x *GetIssuesRequest) GetFilter() *Filter
func (*GetIssuesRequest) GetPagination ¶
func (x *GetIssuesRequest) GetPagination() *model.Pagination
func (*GetIssuesRequest) ProtoMessage ¶
func (*GetIssuesRequest) ProtoMessage()
func (*GetIssuesRequest) ProtoReflect ¶
func (x *GetIssuesRequest) ProtoReflect() protoreflect.Message
func (*GetIssuesRequest) Reset ¶
func (x *GetIssuesRequest) Reset()
func (*GetIssuesRequest) String ¶
func (x *GetIssuesRequest) String() string
type GetIssuesResponse ¶
type GetIssuesResponse struct { Issues []*Issue `protobuf:"bytes,1,rep,name=issues,proto3" json:"issues,omitempty"` Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetIssuesResponse) Descriptor
deprecated
func (*GetIssuesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIssuesResponse.ProtoReflect.Descriptor instead.
func (*GetIssuesResponse) GetIssues ¶
func (x *GetIssuesResponse) GetIssues() []*Issue
func (*GetIssuesResponse) GetTotal ¶
func (x *GetIssuesResponse) GetTotal() uint64
func (*GetIssuesResponse) ProtoMessage ¶
func (*GetIssuesResponse) ProtoMessage()
func (*GetIssuesResponse) ProtoReflect ¶
func (x *GetIssuesResponse) ProtoReflect() protoreflect.Message
func (*GetIssuesResponse) Reset ¶
func (x *GetIssuesResponse) Reset()
func (*GetIssuesResponse) String ¶
func (x *GetIssuesResponse) String() string
type Issue ¶
type Issue struct { IssueId string `protobuf:"bytes,1,opt,name=issue_id,json=issueId,proto3" json:"issue_id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` StaleAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=stale_at,json=staleAt,proto3" json:"stale_at,omitempty"` ClosedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"` Reference *Reference `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"` Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"` Level Level `protobuf:"varint,8,opt,name=level,proto3,enum=api.v1.issue.Level" json:"level,omitempty"` Count uint32 `protobuf:"varint,9,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*Issue) Descriptor
deprecated
func (*Issue) GetClosedAt ¶
func (x *Issue) GetClosedAt() *timestamppb.Timestamp
func (*Issue) GetCreatedAt ¶
func (x *Issue) GetCreatedAt() *timestamppb.Timestamp
func (*Issue) GetIssueId ¶
func (*Issue) GetMessage ¶
func (*Issue) GetReference ¶
func (*Issue) GetStaleAt ¶
func (x *Issue) GetStaleAt() *timestamppb.Timestamp
func (*Issue) GetUpdatedAt ¶
func (x *Issue) GetUpdatedAt() *timestamppb.Timestamp
func (*Issue) ProtoMessage ¶
func (*Issue) ProtoMessage()
func (*Issue) ProtoReflect ¶
func (x *Issue) ProtoReflect() protoreflect.Message
type Level ¶
type Level int32
func (Level) Descriptor ¶
func (Level) Descriptor() protoreflect.EnumDescriptor
func (Level) EnumDescriptor
deprecated
func (Level) Number ¶
func (x Level) Number() protoreflect.EnumNumber
func (Level) Type ¶
func (Level) Type() protoreflect.EnumType
type Reference ¶
type Reference struct { ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` CapsuleId string `protobuf:"bytes,2,opt,name=capsule_id,json=capsuleId,proto3" json:"capsule_id,omitempty"` EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` RolloutId uint64 `protobuf:"varint,4,opt,name=rollout_id,json=rolloutId,proto3" json:"rollout_id,omitempty"` InstanceId string `protobuf:"bytes,5,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // contains filtered or unexported fields }
func (*Reference) Descriptor
deprecated
func (*Reference) GetCapsuleId ¶
func (*Reference) GetEnvironmentId ¶
func (*Reference) GetInstanceId ¶
func (*Reference) GetProjectId ¶
func (*Reference) GetRolloutId ¶
func (*Reference) ProtoMessage ¶
func (*Reference) ProtoMessage()
func (*Reference) ProtoReflect ¶
func (x *Reference) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface { // Get issues GetIssues(ctx context.Context, in *GetIssuesRequest, opts ...grpc.CallOption) (*GetIssuesResponse, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // Get issues GetIssues(context.Context, *GetIssuesRequest) (*GetIssuesResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) GetIssues ¶
func (UnimplementedServiceServer) GetIssues(context.Context, *GetIssuesRequest) (*GetIssuesResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.