server

package
v0.0.0-...-e2599ca Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadServerState = iota
	WriteCloseState
	WriteState
)

Variables

This section is empty.

Functions

func CreateJimService

func CreateJimService() pb.JimServer

CreateJimService creates a new grpc server instance

Types

type Config

type Config []ConfigElement

Config is a type alias for a list of config elements

type ConfigElement

type ConfigElement struct {
	Group  string
	Env    string
	Tag    string
	Server ServerEntry
}

ConfigElement is the main structure used within the server

func (ConfigElement) String

func (c ConfigElement) String() string

type JimServiceImpl

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

func (JimServiceImpl) Decrypt

func (j JimServiceImpl) Decrypt(req *pb.DecryptRequest, stream pb.Jim_DecryptServer) error

func (JimServiceImpl) GetState

func (j JimServiceImpl) GetState(ctx context.Context, request *pb.StateRequest) (*pb.StateReply, error)

func (JimServiceImpl) List

func (j JimServiceImpl) List(ctx context.Context, request *pb.ListRequest) (*pb.ListReply, error)

func (JimServiceImpl) LoadConfigFile

func (j JimServiceImpl) LoadConfigFile(ctx context.Context, request *pb.LoadRequest) (*pb.LoadReply, error)

func (JimServiceImpl) Match

func (j JimServiceImpl) Match(ctx context.Context, request *pb.MatchRequest) (*pb.MatchReply, error)

func (JimServiceImpl) MatchN

func (j JimServiceImpl) MatchN(ctx context.Context, request *pb.MatchNRequest) (*pb.MatchNReply, error)

todo remove, no longer required?

type ServerEntry

type ServerEntry struct {
	Host        string
	Dir         string
	Port        int
	Credentials credentials
}

ServerEntry holds all the information necessary to connect to a server via ssh

Jump to

Keyboard shortcuts

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