Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRpcServer ¶
func AddRpcServer(handler AddRpcServerHandler)
Types ¶
type AddRpcServerHandler ¶
type AddRpcServerHandler func(server *RPCServer)
type HttpService ¶
type HttpService struct { Service // contains filtered or unexported fields }
func NewHttpService ¶
func NewHttpService(opts ...ServiceOption) (*HttpService, error)
func (*HttpService) Engine ¶
func (m *HttpService) Engine() *gin.Engine
func (*HttpService) Run ¶
func (m *HttpService) Run() error
type RpcService ¶
type RpcService struct { Service // contains filtered or unexported fields }
func NewRpcService ¶
func NewRpcService(opts ...ServiceOption) (*RpcService, error)
func (*RpcService) AddRpcOptions ¶
func (m *RpcService) AddRpcOptions(opts ...grpc.ServerOption)
func (*RpcService) Run ¶
func (m *RpcService) Run() error
type ServiceOption ¶
type ServiceOption func(service IService)
func WithAddress ¶
func WithAddress(addr string) ServiceOption
Click to show internal directories.
Click to hide internal directories.