api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package api implements the api sub-command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(parentCmd *cobra.Command)

Register registers the process sub-command.

Types

type Service

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

Service is Oasis Nexus's API service.

func Init

func Init(cfg *config.ServerConfig) (*Service, error)

Init initializes the API service.

func NewService

func NewService(cfg *config.ServerConfig) (*Service, error)

NewService creates a new API service.

func (*Service) Start

func (s *Service) Start()

Start starts the API service.

Jump to

Keyboard shortcuts

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