Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Listen string `json:"listen"` SSL *SSL `json:"ssl,omitempty"` Path string `json:"path,omitempty"` // grpc service name Users Users `json:"users"` Buffer uint16 `json:"buffer,omitempty"` // transport buffer size in KB, up to 65535 IPv6 bool `json:"ipv6,omitempty"` // enable ipv6 in tcp network, disable by default Forward string `json:"forward,omitempty"` // extra forward-proxy }
type Users ¶
type Users []*User
func (Users) Match ¶
Match returns true if the user id is in the users list may use map for fast lookup in the future
func (Users) NullOrEmpty ¶ added in v1.9.3
func (Users) ToMatchMap ¶ added in v1.9.3
func (u Users) ToMatchMap() *UsersMatchMap
type UsersMatchMap ¶ added in v1.9.3
type UsersMatchMap struct {
// contains filtered or unexported fields
}
func NewUsersMatchMap ¶ added in v1.9.3
func NewUsersMatchMap(users Users) *UsersMatchMap
func (*UsersMatchMap) Match ¶ added in v1.9.3
func (m *UsersMatchMap) Match(id string) bool
Click to show internal directories.
Click to hide internal directories.