changelog

package
v0.0.0-...-51115e0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Package changelog is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Changelog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Changelog",
	HandlerType: (*ChangelogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Show",
			Handler:    _Changelog_Show_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 {
	//  Show 查看项目修改的版本差异
	Show(ctx context.Context, in *ChangelogShowRequest, opts ...grpc.CallOption) (*ChangelogShowResponse, 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 {
	//  Show 查看项目修改的版本差异
	Show(context.Context, *ChangelogShowRequest) (*ChangelogShowResponse, error)
	// contains filtered or unexported methods
}

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

type ChangelogShowItem

type ChangelogShowItem struct {
	Version  int32  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Config   string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Date     string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangelogShowItem) Descriptor deprecated

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

Deprecated: Use ChangelogShowItem.ProtoReflect.Descriptor instead.

func (*ChangelogShowItem) GetConfig

func (x *ChangelogShowItem) GetConfig() string

func (*ChangelogShowItem) GetDate

func (x *ChangelogShowItem) GetDate() string

func (*ChangelogShowItem) GetUsername

func (x *ChangelogShowItem) GetUsername() string

func (*ChangelogShowItem) GetVersion

func (x *ChangelogShowItem) GetVersion() int32

func (*ChangelogShowItem) ProtoMessage

func (*ChangelogShowItem) ProtoMessage()

func (*ChangelogShowItem) ProtoReflect

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

func (*ChangelogShowItem) Reset

func (x *ChangelogShowItem) Reset()

func (*ChangelogShowItem) String

func (x *ChangelogShowItem) String() string

func (*ChangelogShowItem) Validate

func (m *ChangelogShowItem) Validate() error

Validate checks the field values on ChangelogShowItem 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 (*ChangelogShowItem) ValidateAll

func (m *ChangelogShowItem) ValidateAll() error

ValidateAll checks the field values on ChangelogShowItem 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 ChangelogShowItemMultiError, or nil if none found.

type ChangelogShowItemMultiError

type ChangelogShowItemMultiError []error

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

func (ChangelogShowItemMultiError) AllErrors

func (m ChangelogShowItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangelogShowItemMultiError) Error

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

type ChangelogShowItemValidationError

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

ChangelogShowItemValidationError is the validation error returned by ChangelogShowItem.Validate if the designated constraints aren't met.

func (ChangelogShowItemValidationError) Cause

Cause function returns cause value.

func (ChangelogShowItemValidationError) Error

Error satisfies the builtin error interface

func (ChangelogShowItemValidationError) ErrorName

ErrorName returns error name.

func (ChangelogShowItemValidationError) Field

Field function returns field value.

func (ChangelogShowItemValidationError) Key

Key function returns key value.

func (ChangelogShowItemValidationError) Reason

Reason function returns reason value.

type ChangelogShowRequest

type ChangelogShowRequest struct {
	ProjectId   int64 `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 (*ChangelogShowRequest) Descriptor deprecated

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

Deprecated: Use ChangelogShowRequest.ProtoReflect.Descriptor instead.

func (*ChangelogShowRequest) GetOnlyChanged

func (x *ChangelogShowRequest) GetOnlyChanged() bool

func (*ChangelogShowRequest) GetProjectId

func (x *ChangelogShowRequest) GetProjectId() int64

func (*ChangelogShowRequest) ProtoMessage

func (*ChangelogShowRequest) ProtoMessage()

func (*ChangelogShowRequest) ProtoReflect

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

func (*ChangelogShowRequest) Reset

func (x *ChangelogShowRequest) Reset()

func (*ChangelogShowRequest) String

func (x *ChangelogShowRequest) String() string

func (*ChangelogShowRequest) Validate

func (m *ChangelogShowRequest) Validate() error

Validate checks the field values on ChangelogShowRequest 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 (*ChangelogShowRequest) ValidateAll

func (m *ChangelogShowRequest) ValidateAll() error

ValidateAll checks the field values on ChangelogShowRequest 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 ChangelogShowRequestMultiError, or nil if none found.

type ChangelogShowRequestMultiError

type ChangelogShowRequestMultiError []error

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

func (ChangelogShowRequestMultiError) AllErrors

func (m ChangelogShowRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangelogShowRequestMultiError) Error

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

type ChangelogShowRequestValidationError

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

ChangelogShowRequestValidationError is the validation error returned by ChangelogShowRequest.Validate if the designated constraints aren't met.

func (ChangelogShowRequestValidationError) Cause

Cause function returns cause value.

func (ChangelogShowRequestValidationError) Error

Error satisfies the builtin error interface

func (ChangelogShowRequestValidationError) ErrorName

ErrorName returns error name.

func (ChangelogShowRequestValidationError) Field

Field function returns field value.

func (ChangelogShowRequestValidationError) Key

Key function returns key value.

func (ChangelogShowRequestValidationError) Reason

Reason function returns reason value.

type ChangelogShowResponse

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

func (*ChangelogShowResponse) Descriptor deprecated

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

Deprecated: Use ChangelogShowResponse.ProtoReflect.Descriptor instead.

func (*ChangelogShowResponse) GetItems

func (x *ChangelogShowResponse) GetItems() []*ChangelogShowItem

func (*ChangelogShowResponse) ProtoMessage

func (*ChangelogShowResponse) ProtoMessage()

func (*ChangelogShowResponse) ProtoReflect

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

func (*ChangelogShowResponse) Reset

func (x *ChangelogShowResponse) Reset()

func (*ChangelogShowResponse) String

func (x *ChangelogShowResponse) String() string

func (*ChangelogShowResponse) Validate

func (m *ChangelogShowResponse) Validate() error

Validate checks the field values on ChangelogShowResponse 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 (*ChangelogShowResponse) ValidateAll

func (m *ChangelogShowResponse) ValidateAll() error

ValidateAll checks the field values on ChangelogShowResponse 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 ChangelogShowResponseMultiError, or nil if none found.

type ChangelogShowResponseMultiError

type ChangelogShowResponseMultiError []error

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

func (ChangelogShowResponseMultiError) AllErrors

func (m ChangelogShowResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangelogShowResponseMultiError) Error

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

type ChangelogShowResponseValidationError

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

ChangelogShowResponseValidationError is the validation error returned by ChangelogShowResponse.Validate if the designated constraints aren't met.

func (ChangelogShowResponseValidationError) Cause

Cause function returns cause value.

func (ChangelogShowResponseValidationError) Error

Error satisfies the builtin error interface

func (ChangelogShowResponseValidationError) ErrorName

ErrorName returns error name.

func (ChangelogShowResponseValidationError) Field

Field function returns field value.

func (ChangelogShowResponseValidationError) Key

Key function returns key value.

func (ChangelogShowResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedChangelogServer

type UnimplementedChangelogServer struct {
}

UnimplementedChangelogServer must be embedded to have forward compatible implementations.

func (UnimplementedChangelogServer) Show

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