rpc

package module
v0.0.0-...-45fa41a Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(port string, handlers ...any) error

Types

type Client

type Client struct {
	*rpc.Client
}

func NewClient

func NewClient(serverAddress, port string) (*Client, error)

func (*Client) Call

func (c *Client) Call(proc string, args any, reply any) error

type MovieData

type MovieData struct {
	Name        string
	ReleaseYear int
	FilePath    string
}

type StoreMovieArgs

type StoreMovieArgs struct {
	MovieData MovieData
}

type StoreMovieReply

type StoreMovieReply struct{}

type StoreTVArgs

type StoreTVArgs struct {
	TVData TVData
}

type StoreTVReply

type StoreTVReply struct{}

type TVData

type TVData struct {
	Name          string
	SeasonNumber  int
	EpisodeNumber int
	ReleaseYear   int
	FilePath      string
}

Jump to

Keyboard shortcuts

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