api

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package api implements the api sub-command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is Oasis Nexus's API service.

func Init

func Init(ctx context.Context, cfg *config.ServerConfig, logger *log.Logger) (*Service, error)

Init initializes the API service.

func NewService

func NewService(ctx context.Context, cfg *config.ServerConfig, logger *log.Logger) (*Service, error)

NewService creates a new API service.

func (*Service) Run added in v0.7.10

func (s *Service) Run(ctx context.Context) error

Start starts the API service.

Jump to

Keyboard shortcuts

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