app

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(opts ...module.Option) module.App

func NewGate

func NewGate(opts ...module.Option) module.Gate

Types

type DefaultApp

type DefaultApp struct {
	module.App
	context.Context
	// contains filtered or unexported fields
}

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) OnRegiste

func (app *DefaultApp) OnRegiste(_func func(app module.App)) 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) Run

func (app *DefaultApp) Run(opts ...module.Option) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL