Documentation ¶
Overview ¶
Copyright 2020 newtbig Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 newtbig Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 newtbig Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func NewApp(opts ...module.Option) module.App
- func NewGate(opts ...module.Option) module.Gate
- type DefaultApp
- func (app *DefaultApp) GetAPPID() string
- func (app *DefaultApp) GetDispatcher() module.Dispatcher
- func (app *DefaultApp) GetEClient() *etcdclient.ETCDClient
- func (app *DefaultApp) GetKeysAPI() eclient.KV
- func (app *DefaultApp) GetRPC() module.RPC
- func (app *DefaultApp) IsGate() bool
- func (app *DefaultApp) OnDestroy() error
- func (app *DefaultApp) OnInit() error
- func (app *DefaultApp) OnRegiste(_func func(app module.App)) error
- func (app *DefaultApp) Options() module.Options
- func (app *DefaultApp) RegisteSer(id uint32, ser string) error
- func (app *DefaultApp) Register(msgID uint32, msgHandler module.DisposeFunc)
- func (app *DefaultApp) Run(opts ...module.Option) error
- func (app *DefaultApp) UpdateOptions(opts ...module.Option) error
- func (app *DefaultApp) WorkDir() string
- type DefaultGate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultApp ¶
func (*DefaultApp) GetAPPID ¶
func (app *DefaultApp) GetAPPID() string
func (*DefaultApp) GetDispatcher ¶
func (app *DefaultApp) GetDispatcher() module.Dispatcher
func (*DefaultApp) GetEClient ¶
func (app *DefaultApp) GetEClient() *etcdclient.ETCDClient
func (*DefaultApp) GetKeysAPI ¶
func (app *DefaultApp) GetKeysAPI() eclient.KV
func (*DefaultApp) GetRPC ¶
func (app *DefaultApp) GetRPC() module.RPC
func (*DefaultApp) IsGate ¶
func (app *DefaultApp) IsGate() bool
func (*DefaultApp) OnDestroy ¶
func (app *DefaultApp) OnDestroy() error
func (*DefaultApp) OnInit ¶
func (app *DefaultApp) OnInit() error
func (*DefaultApp) Options ¶
func (app *DefaultApp) Options() module.Options
func (*DefaultApp) RegisteSer ¶
func (app *DefaultApp) RegisteSer(id uint32, ser string) error
func (*DefaultApp) Register ¶
func (app *DefaultApp) Register(msgID uint32, msgHandler module.DisposeFunc)
func (*DefaultApp) UpdateOptions ¶
func (app *DefaultApp) UpdateOptions(opts ...module.Option) error
func (*DefaultApp) WorkDir ¶
func (app *DefaultApp) WorkDir() string
type DefaultGate ¶
type DefaultGate struct { DefaultApp Verify module.FuncVerify }
func (*DefaultGate) GetVerify ¶
func (app *DefaultGate) GetVerify() module.FuncVerify
func (*DefaultGate) SetVerify ¶
func (app *DefaultGate) SetVerify(_func module.FuncVerify) error