natsContext

package
v0.0.0-...-5d77f35 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeNatContextMsg

type ChangeNatContextMsg struct{}

type NatsContext

type NatsContext struct {
	Name     string `json:"-"`
	FilePath string `json:"-"`

	CA                   string `json:"ca"`
	Cert                 string `json:"cert"`
	ColorScheme          string `json:"color_scheme"`
	Creds                string `json:"creds"`
	Desc                 string `json:"description"`
	InboxPrefix          string `json:"inbox_prefix"`
	JetstreamApiPrefix   string `json:"jetstream_api_prefix"`
	JetstreamDomain      string `json:"jetstream_domain"`
	JetstreamEventPrefix string `json:"jetstream_event_prefix"`
	Key                  string `json:"key"`
	Nkey                 string `json:"nkey"`
	Nsc                  string `json:"nsc"`
	Password             string `json:"password"`
	SocksProxy           string `json:"socks_proxy"`
	Token                string `json:"token"`
	URL                  string `json:"url"`
	User                 string `json:"user"`
}

func (NatsContext) Description

func (n NatsContext) Description() string

func (NatsContext) FP

func (n NatsContext) FP() string

func (NatsContext) FilterValue

func (n NatsContext) FilterValue() string

func (NatsContext) Title

func (n NatsContext) Title() string

type NatsContextModel

type NatsContextModel struct {
	SelectedContext list.Item
	// contains filtered or unexported fields
}

func NewNatsContextModel

func NewNatsContextModel(w, h int) NatsContextModel

func (NatsContextModel) Init

func (m NatsContextModel) Init() tea.Cmd

func (NatsContextModel) Update

func (m NatsContextModel) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (NatsContextModel) View

func (m NatsContextModel) View() string

Jump to

Keyboard shortcuts

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