Documentation ¶
Index ¶
- Constants
- func FindDots(dirs []string) (data []byte, notExistDir []string, err error)
- func RpcImplementTypeLives() []*dot.TypeLives
- type Config
- type FuncOfDot
- type RpcImplement
- func (c *RpcImplement) ExportConfig(_ context.Context, in *rpc.ExportReq) (*rpc.ExportRes, error)
- func (c *RpcImplement) ExportDot(_ context.Context, in *rpc.ExportReq) (*rpc.ExportRes, error)
- func (c *RpcImplement) FindDot(_ context.Context, in *rpc.FindReq) (*rpc.FindRes, error)
- func (c *RpcImplement) ImportByConfig(_ context.Context, im *rpc.ImportReq) (*rpc.ImportRes, error)
- func (c *RpcImplement) ImportByDot(_ context.Context, in *rpc.ImportReq) (*rpc.ImportRes, error)
- func (c *RpcImplement) InitImport(_ context.Context, im *rpc.ImportReq) (*rpc.ImportRes, error)
- func (c *RpcImplement) Start(ignore bool) error
Constants ¶
const (
ServerTypeID = "rpcImplement"
)
Variables ¶
This section is empty.
Functions ¶
func RpcImplementTypeLives ¶
RpcImplementTypeLives make all type lives
Types ¶
type Config ¶
For storage configuration
func (*Config) GetJsonByte ¶
Get the Json bytes configuration information of this part by key Key uses `.` as an interval to represent hierarchical relationships
func (*Config) LoadConfigFile ¶
By default, the configuration file is loaded from the path where the executable is located. It is also possible to load the configuration according to the configPaths parameter passed in by the user. The configPaths passed by the user can be an absolute path or a path relative to the path of the executable file. Support for incoming multiple paths. The priority of the configuration files loading is json > toml > yaml
type RpcImplement ¶
type RpcImplement struct {
ServerNobl gserver.ServerNobl `dot:""`
}
func (*RpcImplement) ExportConfig ¶
导出配置信息 支持三种格式json toml yaml 由文件名来区分不同格式
func (*RpcImplement) ImportByConfig ¶
支持三种格式json toml yaml
func (*RpcImplement) ImportByDot ¶
func (*RpcImplement) InitImport ¶
获取预置组件
func (*RpcImplement) Start ¶
func (c *RpcImplement) Start(ignore bool) error