1 Star 1 Fork 0

Allen / go-scaffold

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
interface.go 454 Bytes
Copy Edit Raw Blame History
Allen authored 2020-07-24 09:39 . init
package server
import (
"context"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"google.golang.org/grpc"
)
// Register for gRPC service register
type Register interface {
RegisterGRPC(g *grpc.Server)
RegisterHTTP(c context.Context, gwmux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error
}
// Pagination for proto request
type Pagination interface {
GetPage() int32
GetSize() int32
GetOrder() string
GetOrderBy() string
}

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/zakums06/go-scaffold.git
git@gitee.com:zakums06/go-scaffold.git
zakums06
go-scaffold
go-scaffold
v0.1.11

Search