ProtoBufSerializer

Global ProtoBuf manager for the Koven framework.

Properties

Link copied to clipboard
var configuration: ProtoBufBuilder.() -> Unit

The custom configuration for ProtoBuf.

Link copied to clipboard
open override val contentType: String

The content type for this serialization format.

Link copied to clipboard
open override var default: ProtoBuf

The default instance of the SerialFormat.

Functions

Link copied to clipboard
fun build(block: ProtoBufBuilder.() -> Unit = {}): ProtoBuf

Builds a new ProtoBuf instance using the current configuration and global module.

Link copied to clipboard
fun configure(block: ProtoBufBuilder.() -> Unit)

Configures the ProtoBuf instance.

Link copied to clipboard
open override fun <T> createFormat(serializer: KSerializer<T>): BodyFormat<T>

Creates a BodyFormat for the given serializer.

Link copied to clipboard
open override fun decodeIssue(bytes: ByteArray): Issue

Decodes an Issue from the given bytes.

Link copied to clipboard
open override fun encodeIssue(issue: Issue): ByteArray

Encodes an Issue to a byte array.