changelog

package
v5.0.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Overview

Package changelog is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Changelog_FindLastChangelogsByProjectID_FullMethodName = "/changelog.Changelog/FindLastChangelogsByProjectID"
)

Variables

View Source
var Changelog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "changelog.Changelog",
	HandlerType: (*ChangelogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindLastChangelogsByProjectID",
			Handler:    _Changelog_FindLastChangelogsByProjectID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "changelog/changelog.proto",
}

Changelog_ServiceDesc is the grpc.ServiceDesc for Changelog service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_changelog_changelog_proto protoreflect.FileDescriptor

Functions

func RegisterChangelogHandler

func RegisterChangelogHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterChangelogHandler registers the http handlers for service Changelog to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterChangelogHandlerClient

func RegisterChangelogHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChangelogClient) error

RegisterChangelogHandlerClient registers the http handlers for service Changelog to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChangelogClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChangelogClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChangelogClient" to call the correct interceptors.

func RegisterChangelogHandlerFromEndpoint

func RegisterChangelogHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterChangelogHandlerFromEndpoint is same as RegisterChangelogHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterChangelogHandlerServer

func RegisterChangelogHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChangelogServer) error

RegisterChangelogHandlerServer registers the http handlers for service Changelog to "mux". UnaryRPC :call ChangelogServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterChangelogHandlerFromEndpoint instead.

func RegisterChangelogServer

func RegisterChangelogServer(s grpc.ServiceRegistrar, srv ChangelogServer)

Types

type ChangelogClient

type ChangelogClient interface {
	FindLastChangelogsByProjectID(ctx context.Context, in *FindLastChangelogsByProjectIDRequest, opts ...grpc.CallOption) (*FindLastChangelogsByProjectIDResponse, error)
}

ChangelogClient is the client API for Changelog 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 NewChangelogClient

func NewChangelogClient(cc grpc.ClientConnInterface) ChangelogClient

type ChangelogServer

type ChangelogServer interface {
	FindLastChangelogsByProjectID(context.Context, *FindLastChangelogsByProjectIDRequest) (*FindLastChangelogsByProjectIDResponse, error)
	// contains filtered or unexported methods
}

ChangelogServer is the server API for Changelog service. All implementations must embed UnimplementedChangelogServer for forward compatibility

type FindLastChangelogsByProjectIDRequest

type FindLastChangelogsByProjectIDRequest struct {
	ProjectId   int32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	OnlyChanged bool  `protobuf:"varint,2,opt,name=only_changed,json=onlyChanged,proto3" json:"only_changed,omitempty"`
	// contains filtered or unexported fields
}

func (*FindLastChangelogsByProjectIDRequest) Descriptor deprecated

func (*FindLastChangelogsByProjectIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindLastChangelogsByProjectIDRequest.ProtoReflect.Descriptor instead.

func (*FindLastChangelogsByProjectIDRequest) GetOnlyChanged

func (x *FindLastChangelogsByProjectIDRequest) GetOnlyChanged() bool

func (*FindLastChangelogsByProjectIDRequest) GetProjectId

func (x *FindLastChangelogsByProjectIDRequest) GetProjectId() int32

func (*FindLastChangelogsByProjectIDRequest) ProtoMessage

func (*FindLastChangelogsByProjectIDRequest) ProtoMessage()

func (*FindLastChangelogsByProjectIDRequest) ProtoReflect

func (*FindLastChangelogsByProjectIDRequest) Reset

func (*FindLastChangelogsByProjectIDRequest) String

func (*FindLastChangelogsByProjectIDRequest) Validate

Validate checks the field values on FindLastChangelogsByProjectIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindLastChangelogsByProjectIDRequest) ValidateAll

ValidateAll checks the field values on FindLastChangelogsByProjectIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindLastChangelogsByProjectIDRequestMultiError, or nil if none found.

type FindLastChangelogsByProjectIDRequestMultiError

type FindLastChangelogsByProjectIDRequestMultiError []error

FindLastChangelogsByProjectIDRequestMultiError is an error wrapping multiple validation errors returned by FindLastChangelogsByProjectIDRequest.ValidateAll() if the designated constraints aren't met.

func (FindLastChangelogsByProjectIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FindLastChangelogsByProjectIDRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindLastChangelogsByProjectIDRequestValidationError

type FindLastChangelogsByProjectIDRequestValidationError struct {
	// contains filtered or unexported fields
}

FindLastChangelogsByProjectIDRequestValidationError is the validation error returned by FindLastChangelogsByProjectIDRequest.Validate if the designated constraints aren't met.

func (FindLastChangelogsByProjectIDRequestValidationError) Cause

Cause function returns cause value.

func (FindLastChangelogsByProjectIDRequestValidationError) Error

Error satisfies the builtin error interface

func (FindLastChangelogsByProjectIDRequestValidationError) ErrorName

ErrorName returns error name.

func (FindLastChangelogsByProjectIDRequestValidationError) Field

Field function returns field value.

func (FindLastChangelogsByProjectIDRequestValidationError) Key

Key function returns key value.

func (FindLastChangelogsByProjectIDRequestValidationError) Reason

Reason function returns reason value.

type FindLastChangelogsByProjectIDResponse

type FindLastChangelogsByProjectIDResponse struct {
	Items []*types.ChangelogModel `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*FindLastChangelogsByProjectIDResponse) Descriptor deprecated

func (*FindLastChangelogsByProjectIDResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindLastChangelogsByProjectIDResponse.ProtoReflect.Descriptor instead.

func (*FindLastChangelogsByProjectIDResponse) GetItems

func (*FindLastChangelogsByProjectIDResponse) ProtoMessage

func (*FindLastChangelogsByProjectIDResponse) ProtoMessage()

func (*FindLastChangelogsByProjectIDResponse) ProtoReflect

func (*FindLastChangelogsByProjectIDResponse) Reset

func (*FindLastChangelogsByProjectIDResponse) String

func (*FindLastChangelogsByProjectIDResponse) Validate

Validate checks the field values on FindLastChangelogsByProjectIDResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindLastChangelogsByProjectIDResponse) ValidateAll

ValidateAll checks the field values on FindLastChangelogsByProjectIDResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindLastChangelogsByProjectIDResponseMultiError, or nil if none found.

type FindLastChangelogsByProjectIDResponseMultiError

type FindLastChangelogsByProjectIDResponseMultiError []error

FindLastChangelogsByProjectIDResponseMultiError is an error wrapping multiple validation errors returned by FindLastChangelogsByProjectIDResponse.ValidateAll() if the designated constraints aren't met.

func (FindLastChangelogsByProjectIDResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FindLastChangelogsByProjectIDResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindLastChangelogsByProjectIDResponseValidationError

type FindLastChangelogsByProjectIDResponseValidationError struct {
	// contains filtered or unexported fields
}

FindLastChangelogsByProjectIDResponseValidationError is the validation error returned by FindLastChangelogsByProjectIDResponse.Validate if the designated constraints aren't met.

func (FindLastChangelogsByProjectIDResponseValidationError) Cause

Cause function returns cause value.

func (FindLastChangelogsByProjectIDResponseValidationError) Error

Error satisfies the builtin error interface

func (FindLastChangelogsByProjectIDResponseValidationError) ErrorName

ErrorName returns error name.

func (FindLastChangelogsByProjectIDResponseValidationError) Field

Field function returns field value.

func (FindLastChangelogsByProjectIDResponseValidationError) Key

Key function returns key value.

func (FindLastChangelogsByProjectIDResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedChangelogServer

type UnimplementedChangelogServer struct {
}

UnimplementedChangelogServer must be embedded to have forward compatible implementations.

type UnsafeChangelogServer

type UnsafeChangelogServer interface {
	// contains filtered or unexported methods
}

UnsafeChangelogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChangelogServer will result in compilation errors.

Jump to

Keyboard shortcuts

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