issue

package
v0.0.0-...-af36fda Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_api_v1_issue_issue_proto protoreflect.FileDescriptor
View Source
var File_api_v1_issue_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetCapsule

func (x *Filter) GetCapsule() string

func (*Filter) GetEnvironment

func (x *Filter) GetEnvironment() string

func (*Filter) GetIncludeClosed

func (x *Filter) GetIncludeClosed() bool

func (*Filter) GetIncludeStale

func (x *Filter) GetIncludeStale() bool

func (*Filter) GetLevel

func (x *Filter) GetLevel() Level

func (*Filter) GetProject

func (x *Filter) GetProject() string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

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

Deprecated: Use Issue.ProtoReflect.Descriptor instead.

func (*Issue) GetClosedAt

func (x *Issue) GetClosedAt() *timestamppb.Timestamp

func (*Issue) GetCount

func (x *Issue) GetCount() uint32

func (*Issue) GetCreatedAt

func (x *Issue) GetCreatedAt() *timestamppb.Timestamp

func (*Issue) GetIssueId

func (x *Issue) GetIssueId() string

func (*Issue) GetLevel

func (x *Issue) GetLevel() Level

func (*Issue) GetMessage

func (x *Issue) GetMessage() string

func (*Issue) GetReference

func (x *Issue) GetReference() *Reference

func (*Issue) GetStaleAt

func (x *Issue) GetStaleAt() *timestamppb.Timestamp

func (*Issue) GetType

func (x *Issue) GetType() string

func (*Issue) GetUpdatedAt

func (x *Issue) GetUpdatedAt() *timestamppb.Timestamp

func (*Issue) ProtoMessage

func (*Issue) ProtoMessage()

func (*Issue) ProtoReflect

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

func (*Issue) Reset

func (x *Issue) Reset()

func (*Issue) String

func (x *Issue) String() string

type Level

type Level int32
const (
	Level_LEVEL_UNSPECIFIED Level = 0
	Level_LEVEL_INFORMATIVE Level = 1
	Level_LEVEL_MINOR       Level = 2
	Level_LEVEL_MAJOR       Level = 3
	Level_LEVEL_CRITICAL    Level = 4
)

func (Level) Descriptor

func (Level) Descriptor() protoreflect.EnumDescriptor

func (Level) Enum

func (x Level) Enum() *Level

func (Level) EnumDescriptor deprecated

func (Level) EnumDescriptor() ([]byte, []int)

Deprecated: Use Level.Descriptor instead.

func (Level) Number

func (x Level) Number() protoreflect.EnumNumber

func (Level) String

func (x Level) String() string

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

Deprecated: Use Reference.ProtoReflect.Descriptor instead.

func (*Reference) GetCapsuleId

func (x *Reference) GetCapsuleId() string

func (*Reference) GetEnvironmentId

func (x *Reference) GetEnvironmentId() string

func (*Reference) GetInstanceId

func (x *Reference) GetInstanceId() string

func (*Reference) GetProjectId

func (x *Reference) GetProjectId() string

func (*Reference) GetRolloutId

func (x *Reference) GetRolloutId() uint64

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) ProtoReflect

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

func (*Reference) Reset

func (x *Reference) Reset()

func (*Reference) String

func (x *Reference) String() string

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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