# Functions
GetErrorCode gets the error code.
GetIncomingHeader gets the given header key.
GetIncomingHeaders gets the headers.
GetOutgoingHeader gets the given header key.
GetOutgoingHeaders gets the headers.
IsError returns true if err is an error created by this package.
NewAbortedError is a convenience function for errors with ErrorCodeAborted.
NewAbortedErrorf is a convenience function for errors with ErrorCodeAborted.
NewAlreadyExistsError is a convenience function for errors with ErrorCodeAlreadyExists.
NewAlreadyExistsErrorf is a convenience function for errors with ErrorCodeAlreadyExists.
NewCanceledError is a convenience function for errors with ErrorCodeCanceled.
NewCanceledErrorf is a convenience function for errors with ErrorCodeCanceled.
NewChainedServerInterceptor returns a new chained ServerInterceptor.
NewDataLossError is a convenience function for errors with ErrorCodeDataLoss.
NewDataLossErrorf is a convenience function for errors with ErrorCodeDataLoss.
NewDeadlineExceededError is a convenience function for errors with ErrorCodeDeadlineExceeded.
NewDeadlineExceededErrorf is a convenience function for errors with ErrorCodeDeadlineExceeded.
NewError returns a new error with a code.
NewErrorf returns a new error.
NewFailedPreconditionError is a convenience function for errors with ErrorCodeFailedPrecondition.
NewFailedPreconditionErrorf is a convenience function for errors with ErrorCodeFailedPrecondition.
NewInternalError is a convenience function for errors with ErrorCodeInternal.
NewInternalErrorf is a convenience function for errors with ErrorCodeInternal.
NewInvalidArgumentError is a convenience function for errors with ErrorCodeInvalidArgument.
NewInvalidArgumentErrorf is a convenience function for errors with ErrorCodeInvalidArgument.
NewNotFoundError is a convenience function for errors with ErrorCodeNotFound.
NewNotFoundErrorf is a convenience function for errors with ErrorCodeNotFound.
NewOutOfRangeError is a convenience function for errors with ErrorCodeOutOfRange.
NewOutOfRangeErrorf is a convenience function for errors with ErrorCodeOutOfRange.
NewPermissionDeniedError is a convenience function for errors with ErrorCodePermissionDenied.
NewPermissionDeniedErrorf is a convenience function for errors with ErrorCodePermissionDenied.
NewResourceExhaustedError is a convenience function for errors with ErrorCodeResourceExhausted.
NewResourceExhaustedErrorf is a convenience function for errors with ErrorCodeResourceExhausted.
NewUnauthenticatedError is a convenience function for errors with ErrorCodeUnauthenticated.
NewUnauthenticatedErrorf is a convenience function for errors with ErrorCodeUnauthenticated.
NewUnavailableError is a convenience function for errors with ErrorCodeUnavailable.
NewUnavailableErrorf is a convenience function for errors with ErrorCodeUnavailable.
NewUnimplementedError is a convenience function for errors with ErrorCodeUnimplemented.
NewUnimplementedErrorf is a convenience function for errors with ErrorCodeUnimplemented.
NewUnknownError is a convenience function for errors with ErrorCodeUnknown.
NewUnknownErrorf is a convenience function for errors with ErrorCodeUnknown.
WithIncomingHeader adds the given header to the context.
WithIncomingHeaders adds the given headers to the context.
WithOutgoingHeader adds the given header to the context.
WithOutgoingHeaders adds the given headers to the context.
# Constants
ErrorCodeAborted indicates the operation was aborted, for example when a transaction is aborted.
ErrorCodeAlreadyExists indicates that entity creation was unsuccessful as the entity already exists.
ErrorCodeCanceled indicates the operation was canceled.
ErrorCodeDataLoss indicates unrecoverable data loss or corruption.
ErrorCodeDeadlineExceeded indicates that a deadline was exceeded, for example a timeout.
ErrorCodeFailedPrecondition indicates operation was rejected because the system is not in a state required for the operation's execution, for example a non-recursive non-empty directory deletion.
ErrorCodeInternal indicates an internal system error.
ErrorCodeInvalidArgument indicates that the an invalid argument was specified, for example missing required arguments and invalid arguments.
ErrorCodeNotFound indicates that an entity was not found.
ErrorCodeOK is a sentinel code for no error.
ErrorCodeOutOfRange indicates an operation was attempted past the valid range, for example seeking or reading past the end of a paginated collection.
ErrorCodePermissionDenied indicates the caller does not have permission to perform the requested operation.
ErrorCodeResourceExhausted indicates some resource has been exhausted, for example throttling or out-of-space errors.
ErrorCodeUnauthenticated indicates the request does not have valid authentication credentials for the operation.
ErrorCodeUnavailable indicates the service is currently unavailable.
ErrorCodeUnimplemented indicates operation is not implemented or not supported/enabled in this service.
ErrorCodeUnknown indicates an unknown error.
# Structs
ServerInfo contains server rpc info.
# Interfaces
ServerHandler is a server handler.
ServerInterceptor is a server interceptor.
# Type aliases
ErrorCode is an error code.
ServerHandlerFunc is a function that implements ServerHandler.
ServerInterceptorFunc is a function that implements ServerInterceptor.