Documentation ¶
Index ¶
Constants ¶
View Source
const (
ResourcePost = "github.com/go-saas/kit-layout.post"
)
View Source
const ServiceName = "github.com/go-saas/kit-layout"
Variables ¶
View Source
var GrpcProviderSet = kitdi.NewSet(NewGrpcConn, NewPostGrpcClient)
View Source
var HttpProviderSet = kitdi.NewSet(NewHttpClient, NewPostHttpClient)
Functions ¶
func NewPostGrpcClient ¶
func NewPostGrpcClient(conn GrpcConn) v1.PostServiceClient
func NewPostHttpClient ¶
func NewPostHttpClient(http HttpClient) v1.PostServiceHTTPClient
Types ¶
type GrpcConn ¶
type GrpcConn grpc.ClientConnInterface
type HttpClient ¶
func NewHttpClient ¶
func NewHttpClient(client *conf.Client, services *conf.Services, dis registry.Discovery, opt *api.Option, tokenMgr api.TokenManager, logger log.Logger, opts []http.ClientOption) (HttpClient, func())
Click to show internal directories.
Click to hide internal directories.