server

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerAPI

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

func NewServerAPI

func NewServerAPI(clientService apiclient.ClientServiceClient) *ServerAPI

func (*ServerAPI) Auth

func (s *ServerAPI) Auth(ctx context.Context, auth *apiclient.AuthRequestV1) error

func (*ServerAPI) GetServices

func (s *ServerAPI) GetServices(ctx context.Context, limit int) ([]*apiclient.ServicePollingResponseV1_Data, error)

func (*ServerAPI) GetToken

func (s *ServerAPI) GetToken() string

func (*ServerAPI) UpdateServices

func (s *ServerAPI) UpdateServices(ctx context.Context, data *service.UpdateService) error

type ServerAPIInterface

type ServerAPIInterface interface {
	GetToken() string
	Auth(ctx context.Context, auth *apiclient.AuthRequestV1) error
	GetServices(ctx context.Context, limit int) ([]*apiclient.ServicePollingResponseV1_Data, error)
	UpdateServices(ctx context.Context, data *service.UpdateService) error
}

Jump to

Keyboard shortcuts

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