Documentation ¶
Index ¶
- func LoadP12(filename, password string) (*tls.Certificate, []*x509.Certificate, error)
- type CertificateConfig
- type ClientHandler
- type ConnClientHandler
- func (h *ConnClientHandler) CanSeeScope(scope string) bool
- func (h *ConnClientHandler) ForAllUID(fn func(string, string) bool)
- func (h *ConnClientHandler) GetLastSeen() *time.Time
- func (h *ConnClientHandler) GetName() string
- func (h *ConnClientHandler) GetUID(callsign string) string
- func (h *ConnClientHandler) GetUids() map[string]string
- func (h *ConnClientHandler) GetUser() *model.User
- func (h *ConnClientHandler) GetVersion() int32
- func (h *ConnClientHandler) HasUID(uid string) bool
- func (h *ConnClientHandler) IsActive() bool
- func (h *ConnClientHandler) SendCot(msg *cotproto.TakMessage) error
- func (h *ConnClientHandler) SendMsg(msg *cot.CotMessage) error
- func (h *ConnClientHandler) SetVersion(n int32)
- func (h *ConnClientHandler) Start()
- type Enroller
- type HandlerConfig
- type Request
- func (r *Request) Args(args map[string]string) *Request
- func (r *Request) Auth(login, passw string) *Request
- func (r *Request) Body(body io.Reader) *Request
- func (r *Request) Do(ctx context.Context) (io.ReadCloser, error)
- func (r *Request) GetJSON(ctx context.Context, obj any) error
- func (r *Request) Post() *Request
- func (r *Request) Put() *Request
- func (r *Request) URL(url string) *Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadP12 ¶ added in v0.15.0
func LoadP12(filename, password string) (*tls.Certificate, []*x509.Certificate, error)
Types ¶
type CertificateConfig ¶ added in v0.15.0
type ClientHandler ¶
type ConnClientHandler ¶
type ConnClientHandler struct {
// contains filtered or unexported fields
}
func NewConnClientHandler ¶
func NewConnClientHandler(name string, conn net.Conn, config *HandlerConfig) *ConnClientHandler
func (*ConnClientHandler) CanSeeScope ¶
func (h *ConnClientHandler) CanSeeScope(scope string) bool
func (*ConnClientHandler) ForAllUID ¶ added in v0.14.7
func (h *ConnClientHandler) ForAllUID(fn func(string, string) bool)
func (*ConnClientHandler) GetLastSeen ¶
func (h *ConnClientHandler) GetLastSeen() *time.Time
func (*ConnClientHandler) GetName ¶
func (h *ConnClientHandler) GetName() string
func (*ConnClientHandler) GetUID ¶ added in v0.14.7
func (h *ConnClientHandler) GetUID(callsign string) string
func (*ConnClientHandler) GetUids ¶
func (h *ConnClientHandler) GetUids() map[string]string
func (*ConnClientHandler) GetUser ¶
func (h *ConnClientHandler) GetUser() *model.User
func (*ConnClientHandler) GetVersion ¶
func (h *ConnClientHandler) GetVersion() int32
func (*ConnClientHandler) HasUID ¶ added in v0.14.7
func (h *ConnClientHandler) HasUID(uid string) bool
func (*ConnClientHandler) IsActive ¶
func (h *ConnClientHandler) IsActive() bool
func (*ConnClientHandler) SendCot ¶ added in v0.14.0
func (h *ConnClientHandler) SendCot(msg *cotproto.TakMessage) error
func (*ConnClientHandler) SendMsg ¶
func (h *ConnClientHandler) SendMsg(msg *cot.CotMessage) error
func (*ConnClientHandler) SetVersion ¶
func (h *ConnClientHandler) SetVersion(n int32)
func (*ConnClientHandler) Start ¶
func (h *ConnClientHandler) Start()
type Enroller ¶ added in v0.15.0
type Enroller struct {
// contains filtered or unexported fields
}
func NewEnroller ¶ added in v0.15.0
func (*Enroller) GetOrEnrollCert ¶ added in v0.15.0
func (e *Enroller) GetOrEnrollCert(ctx context.Context, uid, version string) (*tls.Certificate, []*x509.Certificate, error)
type HandlerConfig ¶
Click to show internal directories.
Click to hide internal directories.