Documentation ¶
Overview ¶
Package changelog is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterChangelogHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterChangelogHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChangelogClient) error
- func RegisterChangelogHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterChangelogHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChangelogServer) error
- func RegisterChangelogServer(s grpc.ServiceRegistrar, srv ChangelogServer)
- type ChangelogClient
- type ChangelogServer
- type FindLastChangelogsByProjectIDRequest
- func (*FindLastChangelogsByProjectIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindLastChangelogsByProjectIDRequest) GetOnlyChanged() bool
- func (x *FindLastChangelogsByProjectIDRequest) GetProjectId() int32
- func (*FindLastChangelogsByProjectIDRequest) ProtoMessage()
- func (x *FindLastChangelogsByProjectIDRequest) ProtoReflect() protoreflect.Message
- func (x *FindLastChangelogsByProjectIDRequest) Reset()
- func (x *FindLastChangelogsByProjectIDRequest) String() string
- func (m *FindLastChangelogsByProjectIDRequest) Validate() error
- func (m *FindLastChangelogsByProjectIDRequest) ValidateAll() error
- type FindLastChangelogsByProjectIDRequestMultiError
- type FindLastChangelogsByProjectIDRequestValidationError
- func (e FindLastChangelogsByProjectIDRequestValidationError) Cause() error
- func (e FindLastChangelogsByProjectIDRequestValidationError) Error() string
- func (e FindLastChangelogsByProjectIDRequestValidationError) ErrorName() string
- func (e FindLastChangelogsByProjectIDRequestValidationError) Field() string
- func (e FindLastChangelogsByProjectIDRequestValidationError) Key() bool
- func (e FindLastChangelogsByProjectIDRequestValidationError) Reason() string
- type FindLastChangelogsByProjectIDResponse
- func (*FindLastChangelogsByProjectIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindLastChangelogsByProjectIDResponse) GetItems() []*types.ChangelogModel
- func (*FindLastChangelogsByProjectIDResponse) ProtoMessage()
- func (x *FindLastChangelogsByProjectIDResponse) ProtoReflect() protoreflect.Message
- func (x *FindLastChangelogsByProjectIDResponse) Reset()
- func (x *FindLastChangelogsByProjectIDResponse) String() string
- func (m *FindLastChangelogsByProjectIDResponse) Validate() error
- func (m *FindLastChangelogsByProjectIDResponse) ValidateAll() error
- type FindLastChangelogsByProjectIDResponseMultiError
- type FindLastChangelogsByProjectIDResponseValidationError
- func (e FindLastChangelogsByProjectIDResponseValidationError) Cause() error
- func (e FindLastChangelogsByProjectIDResponseValidationError) Error() string
- func (e FindLastChangelogsByProjectIDResponseValidationError) ErrorName() string
- func (e FindLastChangelogsByProjectIDResponseValidationError) Field() string
- func (e FindLastChangelogsByProjectIDResponseValidationError) Key() bool
- func (e FindLastChangelogsByProjectIDResponseValidationError) Reason() string
- type UnimplementedChangelogServer
- type UnsafeChangelogServer
Constants ¶
const (
Changelog_FindLastChangelogsByProjectID_FullMethodName = "/changelog.Changelog/FindLastChangelogsByProjectID"
)
Variables ¶
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)
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 (x *FindLastChangelogsByProjectIDRequest) ProtoReflect() protoreflect.Message
func (*FindLastChangelogsByProjectIDRequest) Reset ¶
func (x *FindLastChangelogsByProjectIDRequest) Reset()
func (*FindLastChangelogsByProjectIDRequest) String ¶
func (x *FindLastChangelogsByProjectIDRequest) String() string
func (*FindLastChangelogsByProjectIDRequest) Validate ¶
func (m *FindLastChangelogsByProjectIDRequest) Validate() error
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 ¶
func (m *FindLastChangelogsByProjectIDRequest) ValidateAll() error
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 ¶
func (m FindLastChangelogsByProjectIDRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindLastChangelogsByProjectIDRequestMultiError) Error ¶
func (m FindLastChangelogsByProjectIDRequestMultiError) Error() string
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 ¶
func (e FindLastChangelogsByProjectIDRequestValidationError) Cause() error
Cause function returns cause value.
func (FindLastChangelogsByProjectIDRequestValidationError) Error ¶
func (e FindLastChangelogsByProjectIDRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindLastChangelogsByProjectIDRequestValidationError) ErrorName ¶
func (e FindLastChangelogsByProjectIDRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindLastChangelogsByProjectIDRequestValidationError) Field ¶
func (e FindLastChangelogsByProjectIDRequestValidationError) Field() string
Field function returns field value.
func (FindLastChangelogsByProjectIDRequestValidationError) Key ¶
func (e FindLastChangelogsByProjectIDRequestValidationError) Key() bool
Key function returns key value.
func (FindLastChangelogsByProjectIDRequestValidationError) Reason ¶
func (e FindLastChangelogsByProjectIDRequestValidationError) Reason() string
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 (x *FindLastChangelogsByProjectIDResponse) GetItems() []*types.ChangelogModel
func (*FindLastChangelogsByProjectIDResponse) ProtoMessage ¶
func (*FindLastChangelogsByProjectIDResponse) ProtoMessage()
func (*FindLastChangelogsByProjectIDResponse) ProtoReflect ¶
func (x *FindLastChangelogsByProjectIDResponse) ProtoReflect() protoreflect.Message
func (*FindLastChangelogsByProjectIDResponse) Reset ¶
func (x *FindLastChangelogsByProjectIDResponse) Reset()
func (*FindLastChangelogsByProjectIDResponse) String ¶
func (x *FindLastChangelogsByProjectIDResponse) String() string
func (*FindLastChangelogsByProjectIDResponse) Validate ¶
func (m *FindLastChangelogsByProjectIDResponse) Validate() error
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 ¶
func (m *FindLastChangelogsByProjectIDResponse) ValidateAll() error
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 ¶
func (m FindLastChangelogsByProjectIDResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindLastChangelogsByProjectIDResponseMultiError) Error ¶
func (m FindLastChangelogsByProjectIDResponseMultiError) Error() string
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 ¶
func (e FindLastChangelogsByProjectIDResponseValidationError) Cause() error
Cause function returns cause value.
func (FindLastChangelogsByProjectIDResponseValidationError) Error ¶
func (e FindLastChangelogsByProjectIDResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FindLastChangelogsByProjectIDResponseValidationError) ErrorName ¶
func (e FindLastChangelogsByProjectIDResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FindLastChangelogsByProjectIDResponseValidationError) Field ¶
func (e FindLastChangelogsByProjectIDResponseValidationError) Field() string
Field function returns field value.
func (FindLastChangelogsByProjectIDResponseValidationError) Key ¶
func (e FindLastChangelogsByProjectIDResponseValidationError) Key() bool
Key function returns key value.
func (FindLastChangelogsByProjectIDResponseValidationError) Reason ¶
func (e FindLastChangelogsByProjectIDResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedChangelogServer ¶
type UnimplementedChangelogServer struct { }
UnimplementedChangelogServer must be embedded to have forward compatible implementations.
func (UnimplementedChangelogServer) FindLastChangelogsByProjectID ¶
func (UnimplementedChangelogServer) FindLastChangelogsByProjectID(context.Context, *FindLastChangelogsByProjectIDRequest) (*FindLastChangelogsByProjectIDResponse, error)
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.