1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-19 04:50:02 +02:00

rename transport to api

This commit is contained in:
Henrik Hautakoski 2023-04-19 09:52:29 +02:00
parent 044ed4e891
commit 102045e47e
15 changed files with 40 additions and 40 deletions

View file

@ -1,13 +0,0 @@
package message
// Encoder is a function that can encode a object to the encoded format.
type Encoder func(any) ([]byte, error)
// Decoder is a function that can decode a format into an object
type Decoder func([]byte, any) error
// Codec is a type that can has a matching Encoder and Decoder function.
type Codec struct {
Encoder Encoder
Decoder Decoder
}