server

package
v0.0.0-...-cf66588 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StrikeServer

type StrikeServer struct {
	pb.UnimplementedStrikeServer
	Env         []*pb.Envelope
	DBpool      *pgxpool.Pool
	PStatements *db.PreparedStatements

	OnlineUsers     map[string]pb.Strike_UserStatusServer
	PayloadStreams  map[string]pb.Strike_PayloadStreamServer
	PayloadChannels map[string]chan *pb.StreamPayload
	// contains filtered or unexported fields
}

func (*StrikeServer) Login

func (s *StrikeServer) Login(ctx context.Context, clientLogin *pb.LoginRequest) (*pb.ServerResponse, error)

func (*StrikeServer) MessageStream

func (s *StrikeServer) MessageStream(username *pb.Username, stream pb.Strike_PayloadStreamServer) error

func (*StrikeServer) SaltMine

func (s *StrikeServer) SaltMine(ctx context.Context, user *pb.Username) (*pb.Salt, error)

func (*StrikeServer) SendPayload

func (s *StrikeServer) SendPayload(ctx context.Context, payload *pb.StreamPayload) (*pb.ServerResponse, error)

func (*StrikeServer) Signup

func (s *StrikeServer) Signup(ctx context.Context, userInit *pb.InitUser) (*pb.ServerResponse, error)

func (*StrikeServer) UserStatus

func (s *StrikeServer) UserStatus(req *pb.StatusRequest, stream pb.Strike_UserStatusServer) error

Jump to

Keyboard shortcuts

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