Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigsRequest

type ConfigsRequest struct {
	ReleaseKey string  `form:"releaseKey"`
	Ip         string  `form:"ip"`
	Messages   Message `form:"messages"`
}

type ConfigsResponse

type ConfigsResponse struct {
	AppId          string            `json:"appId"`
	Cluster        string            `json:"cluster"`
	NamespaceName  string            `json:"namespaceName"`
	ReleaseKey     string            `json:"releaseKey"`
	Configurations map[string]string `json:"configurations"`
}

type Message

type Message struct {
	Details map[string]interface{} `json:"details"`
}

type Notification

type Notification struct {
	NamespaceName  string `json:"namespaceName"`
	NotificationId int64  `json:"notificationId"`
}

type NotificationRes

type NotificationRes struct {
	NamespaceName  string  `json:"namespaceName"`
	NotificationId int64   `json:"notificationId"`
	Messages       Message `json:"messages"`
}

type NotificationsRequest

type NotificationsRequest struct {
	AppId         string `form:"appId" binding:"required"`
	Cluster       string `form:"cluster" binding:"required"`
	Notifications string `form:"notifications" binding:"required"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) GetHost

func (s *Server) GetHost() string

func (*Server) Run

func (s *Server) Run()

func (*Server) SetHost

func (s *Server) SetHost(host string)

func (*Server) Stop

func (s *Server) Stop()

func (*Server) Wait

func (s *Server) Wait()