mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
22 lines
408 B
Go
22 lines
408 B
Go
package frontend
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
const (
|
|
ErrSimpleOne ErrSimple = "one"
|
|
ErrSimpleTwo ErrSimple = "two"
|
|
|
|
ErrMultiAOne ErrMultiA = "one"
|
|
ErrMultiATwo ErrMultiA = "two"
|
|
|
|
ErrMultiBThree ErrMultiB = "three"
|
|
ErrMultiBFour ErrMultiB = "four"
|
|
)
|
|
|
|
type Service interface {
|
|
Simple(w http.ResponseWriter, r *http.Request) (e *ErrSimple)
|
|
Multiple(w http.ResponseWriter, r *http.Request) (e *ErrMulti)
|
|
}
|