mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-31 00:38:37 +08:00
34 lines
692 B
Go
34 lines
692 B
Go
// ================================================================================
|
|
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type (
|
|
ITCPAuth interface {
|
|
Start(ctx context.Context)
|
|
Stop(ctx context.Context)
|
|
IsLogin() bool
|
|
}
|
|
)
|
|
|
|
var (
|
|
localTCPAuth ITCPAuth
|
|
)
|
|
|
|
func TCPAuth() ITCPAuth {
|
|
if localTCPAuth == nil {
|
|
panic("implement not found for interface ITCPAuth, forgot register?")
|
|
}
|
|
return localTCPAuth
|
|
}
|
|
|
|
func RegisterTCPAuth(i ITCPAuth) {
|
|
localTCPAuth = i
|
|
}
|